diff options
| author | 2023-06-16 11:36:54 +0100 | |
|---|---|---|
| committer | 2023-06-16 11:36:54 +0100 | |
| commit | 018ba7bdb02be2cdee7717923288bc2661b74fc7 (patch) | |
| tree | 9892527dc0f9286ef37e02efa5ed33d3855c50bb | |
| parent | Fix includes, QProcess is used not only without KDE (diff) | |
| parent | editor: Fix crash when editing empty network list (diff) | |
| download | KVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.tar.gz KVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.tar.bz2 KVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.zip | |
Merge branch 'bugfix/script-editor-out-of-range-exception'
| -rw-r--r-- | src/modules/editor/ScriptEditorImplementation.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/editor/ScriptEditorImplementation.cpp b/src/modules/editor/ScriptEditorImplementation.cpp index 92b66a378..a453b0951 100644 --- a/src/modules/editor/ScriptEditorImplementation.cpp +++ b/src/modules/editor/ScriptEditorImplementation.cpp @@ -173,6 +173,10 @@ void ScriptEditorWidget::asyncCompleterCreation() m_pListModulesNames = new QStringList(d.entryList(QDir::Files | QDir::Readable)); iModulesCount = m_pListModulesNames->count(); } + + if (iIndex <= m_pListModulesNames->size()) + return; + QString szModuleName = m_pListModulesNames->at(iIndex); iIndex++; |
