Merge pull request #7092 from symless/SYNERGY-1229-Synergy-is-running-after-quit-on-Linux

SYNERGY-1229 Synergy is running after quit on Linux
This commit is contained in:
Andrey Batyiev 2021-09-23 11:08:41 +03:00 committed by GitHub
commit 34b6fe6018
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

View file

@ -9,6 +9,7 @@ Bug fixes:
- #7082 Windows client doesn't resume connection after sleep
- #7089 Modifier keys don't work on Microsoft Remote Desktop
- #7091 Fix CMakeFileList for unittests
- #7092 Synergy is running after quit on Linux
Enhancements:
- #7068 Add Synergy restart when settings changed

View file

@ -1506,6 +1506,13 @@ void MainWindow::enableClient(bool enable)
}
}
void MainWindow::closeEvent(QCloseEvent* event)
{
#if defined (Q_OS_LINUX)
QCoreApplication::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);