diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-10-05 07:58:57 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-10-05 07:58:57 -0400 |
| commit | 1d1ed09a3c0b2aec01da9271ab30a59be04f5c44 (patch) | |
| tree | adff17ae25841b2c6721496c43aca49a286fba34 | |
| parent | 70337fc2d98fda28e94ff0dd78334fe90e223a4f (diff) | |
Allow SidebarWidgets to provide notificaiton of closing
| -rw-r--r-- | ui/sidebar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/sidebar.h b/ui/sidebar.h index ead1ca8d..4f8825ed 100644 --- a/ui/sidebar.h +++ b/ui/sidebar.h @@ -48,7 +48,7 @@ class BINARYNINJAUIAPI SidebarWidget : public QWidget public: SidebarWidget(const QString& title); - + ~SidebarWidget() { closing(); } const QString& title() const { return m_title; } void enableRefreshTimer(int interval); @@ -61,6 +61,7 @@ class BINARYNINJAUIAPI SidebarWidget : public QWidget virtual void notifyViewChanged(ViewFrame* /*frame*/) {} virtual void notifyViewLocationChanged(View* /*view*/, const ViewLocation& /*viewLocation*/) {} virtual void focus(); + virtual void closing() {} virtual QWidget* headerWidget() { return nullptr; } }; |
