aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/popupeditor/PopupEditorWindow.cpp
diff options
context:
space:
mode:
authorGravatar staticfox2016-08-14 17:47:09 -0400
committerGravatar staticfox2016-08-14 17:47:09 -0400
commit65f77c7c6905b443fa7a44d207a723bf869e82c6 (patch)
tree88c4225f37df63c7a8b8c28b83df6cff3c9ff4bf /src/modules/popupeditor/PopupEditorWindow.cpp
parentKviIrcView: Move to vector (diff)
downloadKVIrc-65f77c7c6905b443fa7a44d207a723bf869e82c6.tar.gz
KVIrc-65f77c7c6905b443fa7a44d207a723bf869e82c6.tar.bz2
KVIrc-65f77c7c6905b443fa7a44d207a723bf869e82c6.zip
PopupEditor: Fix unintentional item reassignmnet
Fixes #2106
Diffstat (limited to 'src/modules/popupeditor/PopupEditorWindow.cpp')
-rw-r--r--src/modules/popupeditor/PopupEditorWindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/popupeditor/PopupEditorWindow.cpp b/src/modules/popupeditor/PopupEditorWindow.cpp
index 22cfc13f4..60b7741f6 100644
--- a/src/modules/popupeditor/PopupEditorWindow.cpp
+++ b/src/modules/popupeditor/PopupEditorWindow.cpp
@@ -346,8 +346,9 @@ not_this_one:
int count = item->childCount();
for(int i = 0; i < count; i++)
{
- item = (PopupTreeWidgetItem *)item->child(i);
- PopupTreeWidgetItem * found = findMatchingItem(it, item);
+ PopupTreeWidgetItem * testItem = (PopupTreeWidgetItem *)item->child(i);
+ KVI_ASSERT(testItem);
+ PopupTreeWidgetItem * found = findMatchingItem(it, testItem);
if(found)
return found;
}