diff options
| author | 2008-10-05 14:33:01 +0000 | |
|---|---|---|
| committer | 2008-10-05 14:33:01 +0000 | |
| commit | 926d3bee64c092cf987e1dab6cb3075505c5ca01 (patch) | |
| tree | 0600ebf2fc90c3bd45bff5aba1c381ac94813ddb /src | |
| parent | updated TODOs (diff) | |
| download | KVIrc-926d3bee64c092cf987e1dab6cb3075505c5ca01.tar.gz KVIrc-926d3bee64c092cf987e1dab6cb3075505c5ca01.tar.bz2 KVIrc-926d3bee64c092cf987e1dab6cb3075505c5ca01.zip | |
applying patch for #250
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2658 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/editor/scripteditor.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/editor/scripteditor.cpp b/src/modules/editor/scripteditor.cpp index 18bddd656..e9fb642f0 100644 --- a/src/modules/editor/scripteditor.cpp +++ b/src/modules/editor/scripteditor.cpp @@ -131,7 +131,10 @@ void KviScriptEditorWidget::asyncCompleterCreation() m_pListModulesNames = new QStringList(d.entryList(QDir::Files | QDir::Readable)); iModulesCount = m_pListModulesNames->count(); } - + if (!m_pListModulesNames) + { + return; + } QString szModuleName = m_pListModulesNames->at(iIndex); iIndex++; |
