aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index a1b678296..deacdec76 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -41,6 +41,8 @@ public:
enum CurrentState{ VIEWALL, GLOBE_MAXIMIZED, INFO_MAXIMIZED, PROFILE_MAXIMIZED, LIST_MAXIMIZED};
MainWindow();
+ virtual ~MainWindow();
+ static MainWindow *instance();
ProfileGraphicsView *graphics();
MainTab *information();
DiveListView *dive_list();
@@ -135,6 +137,7 @@ private:
UserManual *helpView;
CurrentState state;
QString filter();
+ static MainWindow *m_Instance;
bool askSaveChanges();
void writeSettings();
void redrawProfile();