diff options
| author | 2008-10-28 16:41:00 +0000 | |
|---|---|---|
| committer | 2008-10-28 16:41:00 +0000 | |
| commit | 8303e090078c09e7b60172959e7a30f265875be1 (patch) | |
| tree | 932ec2a57f6a31d7572f0853ec37920bf9752336 /src/modules/editor/scripteditor.cpp | |
| parent | fixed setup module loading, thanks to GlaDiaC; fixed typo; (diff) | |
| download | KVIrc-8303e090078c09e7b60172959e7a30f265875be1.tar.gz KVIrc-8303e090078c09e7b60172959e7a30f265875be1.tar.bz2 KVIrc-8303e090078c09e7b60172959e7a30f265875be1.zip | |
fixed scripteditor loading, thanks to GlaDiaC
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2783 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/editor/scripteditor.cpp')
| -rw-r--r-- | src/modules/editor/scripteditor.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index f961baf10..9d584db7d 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -139,8 +139,15 @@ void KviScriptEditorWidget::asyncCompleterCreation() { m_pListCompletition = new QStringList(); QString szPath; + +#ifdef KVIRC_MODULES_DIR + szPath = KVIRC_MODULES_DIR; +#else g_pApp->getGlobalKvircDirectory(szPath,KviApp::Plugins); +#endif + QDir d(szPath); + #if defined(COMPILE_ON_WINDOWS) d.setNameFilters(QStringList("kvi*.dll")); #elif defined(COMPILE_ON_MINGW) |
