diff options
author | Jesper K. Pedersen <[email protected]> | 2013-05-29 07:16:50 +0000 |
---|---|---|
committer | Jesper K. Pedersen <[email protected]> | 2013-06-03 15:36:06 +0200 |
commit | af8eb8d825d7d1ea08b1a1ac36f52860bf4b7b84 (patch) | |
tree | 11b9d426e1a21845f498f7fdd47ca80f66ebdaec /scriptmanager.cpp | |
parent | a29bf2cd09e0a1bf36aac99ebc551658c58b2a58 (diff) |
Change-Id: I270dc67545d27cd3177414112f14684df63a70ad
Reviewed-by: Nicolas Arnaud-Cormos <[email protected]>
Diffstat (limited to 'scriptmanager.cpp')
-rw-r--r-- | scriptmanager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scriptmanager.cpp b/scriptmanager.cpp index c605a67..6def7c2 100644 --- a/scriptmanager.cpp +++ b/scriptmanager.cpp @@ -118,6 +118,12 @@ ScriptManager::ScriptList ScriptManager::scriptList() const return m_scriptList; } +void ScriptManager::addScriptPath(const QString &path) +{ + m_watcher->addPath(path); + directoryChanged(path, true); +} + QStringList scriptListFromDir(const QString &path) { QDir dir(path); |