summaryrefslogtreecommitdiff
path: root/ui/projectbrowser.h
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2025-02-07 18:46:20 -0500
committerJosh Ferrell <josh@vector35.com>2025-02-10 16:45:25 -0500
commita4f00fbf5efd205cc8831ce8b6e7394c47f99a2f (patch)
treeb8f16aba002967ae880aefdbb581aadf15b797b8 /ui/projectbrowser.h
parent27eb30dcfcb5f897aed7c7b128e7c50a2020a6a1 (diff)
Fix item indices getting desynced when moving nested items in project browser
Diffstat (limited to 'ui/projectbrowser.h')
-rw-r--r--ui/projectbrowser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/projectbrowser.h b/ui/projectbrowser.h
index 5752e915..70441aac 100644
--- a/ui/projectbrowser.h
+++ b/ui/projectbrowser.h
@@ -54,7 +54,7 @@ class BINARYNINJAUIAPI ProjectItemModel: public QStandardItemModel, public Binar
QFileSystemWatcher* m_fsWatcher;
- std::unordered_map<std::string, QPersistentModelIndex> m_idIndexMap;
+ std::unordered_map<std::string, QStandardItem*> m_itemsById;
QHash<QString, QString> m_pathMimeTypeCache;
QHash<QString, size_t> m_pathSizeCache;