diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 723e35fb4..f4cf9a694 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -1506,6 +1506,13 @@ void MainWindow::enableClient(bool enable) } } +void MainWindow::closeEvent(QCloseEvent* event) +{ +#if defined (Q_OS_LINUX) + qApp->quit(); +#endif + QWidget::closeEvent(event); +} void MainWindow::on_m_pRadioGroupServer_clicked(bool) { diff --git a/src/gui/src/MainWindow.h b/src/gui/src/MainWindow.h index 748a311de..cf1205b5d 100644 --- a/src/gui/src/MainWindow.h +++ b/src/gui/src/MainWindow.h @@ -195,6 +195,7 @@ public slots: void retranslateMenuBar(); void enableServer(bool enable); void enableClient(bool enable); + void closeEvent(QCloseEvent* event) override; #if defined(Q_OS_WIN) bool isServiceRunning(QString name);