summaryrefslogtreecommitdiff
path: root/ui/filecontext.h
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2021-12-28 15:59:31 -0500
committerGlenn Smith <glenn@vector35.com>2022-01-17 20:42:22 -0500
commite88ed98d60b046cbeb5f4c96fc374c7576d7b57a (patch)
treee937ffccba9868cb259e4ec817157b255dc74652 /ui/filecontext.h
parentdc2a99e1159c3951b91935490ec8d2da5fc8e1e7 (diff)
OptionsDialog/SettingsView + ProgressTask fixes
Diffstat (limited to 'ui/filecontext.h')
-rw-r--r--ui/filecontext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/filecontext.h b/ui/filecontext.h
index 54861591..e31037ed 100644
--- a/ui/filecontext.h
+++ b/ui/filecontext.h
@@ -31,7 +31,7 @@ class BINARYNINJAUIAPI FileContext: public FileContextBase, public BinaryNinja::
std::map<QString, BinaryViewRef> m_dataViews;
ViewFrame* m_currentViewFrame;
- std::set<QObject*> m_refs;
+ std::map<QObject*, QMetaObject::Connection> m_refs;
std::vector<SyncGroup*> m_syncGroups;
std::map<ViewFrame*, std::pair<View*, ViewLocation>> m_syncLastLocation;
@@ -45,7 +45,8 @@ public:
FileContext(FileMetadataRef file, BinaryViewRef rawData, const QString& filename = QString(), bool isValidSaveName = false, bool createViews = true);
virtual ~FileContext();
- void registerReference(QWidget* widget);
+ void registerReference(QObject* widget);
+ void unregisterReference(QObject* widget);
void close();
static void closeAllOpenFiles();