diff options
author | Felix Geyer <debfx@fobos.de> | 2015-10-10 18:00:50 +0300 |
---|---|---|
committer | Felix Geyer <debfx@fobos.de> | 2015-10-10 18:10:27 +0300 |
commit | 58ed99d56298ea9302ec81ceeacfcdfdd876c710 (patch) | |
tree | 09dd36289bbbe920e2a728b780465ef788c2e281 /src/gui/Application.h | |
parent | 840642394fa7b48884da824c923db1e257992852 (diff) |
OS X: Restore main window when clicking on the docker icon.
Apparently this worked previously. Maybe a regression in Qt?
Refs #326
Diffstat (limited to 'src/gui/Application.h')
-rw-r--r-- | src/gui/Application.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/Application.h b/src/gui/Application.h index a5f55d4dd..2b789984d 100644 --- a/src/gui/Application.h +++ b/src/gui/Application.h @@ -29,6 +29,7 @@ class Application : public QApplication public: Application(int& argc, char** argv); + void setMainWindow(QWidget* mainWindow); bool event(QEvent* event) Q_DECL_OVERRIDE; #ifdef Q_WS_X11 @@ -37,6 +38,9 @@ public: Q_SIGNALS: void openFile(const QString& filename); + +private: + QWidget* m_mainWindow; }; #endif // KEEPASSX_APPLICATION_H |