diff options
| author | Brian Potchik <brian@vector35.com> | 2023-09-12 20:14:03 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-09-12 21:07:37 -0400 |
| commit | 6b8241af05a058e1fcb33205357fc405bf82c150 (patch) | |
| tree | 74eb0acfb82ae3c5fde9469617d868b4938d48aa | |
| parent | cb8fdff6f09200f0e8629df146a50c12efbac129 (diff) | |
Fix ViewFrame lifetime issues.
| -rw-r--r-- | ui/viewframe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/viewframe.h b/ui/viewframe.h index b835170d..96bf7d98 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -370,6 +370,7 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget bool m_graphViewPreferred = false; QStringList m_viewTypePriority; int m_preferredSyncGroup = 1; + bool m_aboutToClose = false; UIActionHandler m_actionHandler; @@ -448,6 +449,8 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget QWidget* getViewWidgetForType(const QString& type); View* getViewForType(const QString& type); + void aboutToClose() { m_aboutToClose = true; } + bool isAboutToClose() { return m_aboutToClose; } bool closeRequest(); void closing(); void clearViewLocation(); |
