Ignore double close event on macOS, resolves #430

This commit is contained in:
Janek Bevendorff 2017-05-17 10:05:45 +02:00
parent c69a978589
commit 00dc4b9ace
No known key found for this signature in database
GPG key ID: CFEC2F6850BFFA53
2 changed files with 14 additions and 5 deletions

View file

@ -40,6 +40,7 @@ class MainWindow : public QMainWindow
public:
MainWindow();
~MainWindow();
enum StackedWidgetIndex
{
DatabaseTabScreen = 0,
@ -118,7 +119,8 @@ private:
Q_DISABLE_COPY(MainWindow)
bool appExitCalled;
bool m_appExitCalled;
bool m_appExiting;
};
#define KEEPASSXC_MAIN_WINDOW (qobject_cast<Application*>(qApp) ? \