Skip to content

Commit a4f00fb

Browse files
committed
Fix item indices getting desynced when moving nested items in project browser
1 parent 27eb30d commit a4f00fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/projectbrowser.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class BINARYNINJAUIAPI ProjectItemModel: public QStandardItemModel, public Binar
5454

5555
QFileSystemWatcher* m_fsWatcher;
5656

57-
std::unordered_map<std::string, QPersistentModelIndex> m_idIndexMap;
57+
std::unordered_map<std::string, QStandardItem*> m_itemsById;
5858

5959
QHash<QString, QString> m_pathMimeTypeCache;
6060
QHash<QString, size_t> m_pathSizeCache;

0 commit comments

Comments
 (0)