diff options
| author | 2016-08-14 17:47:09 -0400 | |
|---|---|---|
| committer | 2016-08-14 17:47:09 -0400 | |
| commit | 65f77c7c6905b443fa7a44d207a723bf869e82c6 (patch) | |
| tree | 88c4225f37df63c7a8b8c28b83df6cff3c9ff4bf /src/modules/popupeditor/PopupEditorWindow.cpp | |
| parent | KviIrcView: Move to vector (diff) | |
| download | KVIrc-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.cpp | 5 |
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; } |
