Skip to content

Commit ce7ef53

Browse files
authored
Merge pull request #1123 from deXol/develop
Fix application exit on Mac
2 parents db13667 + 25b877b commit ce7ef53

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/AppGui.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,14 @@ bool AppGui::initialize()
137137
});
138138

139139
QAction* quitAction = new QAction(tr("&Quit"), this);
140+
141+
#ifdef Q_OS_MAC
142+
// Since Qt6 quit is not exiting application properly on Mac
143+
// daemon keeps running and prepareToQuit is not called
144+
connect(quitAction, &QAction::triggered, qApp, &QCoreApplication::exit, Qt::QueuedConnection);
145+
#else
140146
connect(quitAction, &QAction::triggered, qApp, &QCoreApplication::quit, Qt::QueuedConnection);
147+
#endif
141148

142149
QMenu *systrayMenu = new QMenu();
143150

0 commit comments

Comments
 (0)