SYNERGY-1229 Synergy is running after quit on Linux

This commit is contained in:
SerhiiGadzhilov 2021-09-22 17:45:05 +03:00
parent 7da8c35531
commit fbab3f8f3a
2 changed files with 8 additions and 0 deletions

View file

@ -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)
{

View file

@ -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);