aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/editor
diff options
context:
space:
mode:
authorGravatar Matt2023-06-16 11:36:54 +0100
committerGravatar Matt2023-06-16 11:36:54 +0100
commit018ba7bdb02be2cdee7717923288bc2661b74fc7 (patch)
tree9892527dc0f9286ef37e02efa5ed33d3855c50bb /src/modules/editor
parentFix includes, QProcess is used not only without KDE (diff)
parenteditor: Fix crash when editing empty network list (diff)
downloadKVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.tar.gz
KVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.tar.bz2
KVIrc-018ba7bdb02be2cdee7717923288bc2661b74fc7.zip
Merge branch 'bugfix/script-editor-out-of-range-exception'
Diffstat (limited to 'src/modules/editor')
-rw-r--r--src/modules/editor/ScriptEditorImplementation.cpp4
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++;