SYNERGY-334 The system asks to save twice. (#6814)

* SYNERGY-334 The system asks to save twice.

* SYNERGY-334 ChangeLog has been updated.
This commit is contained in:
SerhiiGadzhilov 2020-10-22 12:59:11 +03:00 committed by GitHub
parent 4f65578546
commit 4ecac36e2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 10 deletions

View file

@ -10,7 +10,7 @@ Bug fixes:
- #6771 Added Ubuntu 16 to CI/CD
- #6804 Synergy loses edition when creating a System scope config
- #6660 + #6582 Add missing XAtom for utf-8 handling with Xorg
- #6814 The system asks to save twice.
Enhancements:
- #6750 Integrate SonarCloud for static analysis and test coverage

View file

@ -224,8 +224,6 @@ MainWindow::~MainWindow()
delete m_pZeroconf;
#endif
saveSettings();
delete m_pSslCertificate;
}
@ -1426,9 +1424,3 @@ void MainWindow::windowStateChanged()
if (windowState() == Qt::WindowMinimized && appConfig().getMinimizeToTray())
hide();
}
void MainWindow::closeEvent(QCloseEvent *event) {
//If the main window is closing, trigger a save
GUI::Config::ConfigWriter::make()->globalSave();
event->accept();
}

View file

@ -188,7 +188,6 @@ public slots:
void stopDesktop();
void changeEvent(QEvent* event);
void retranslateMenuBar();
void closeEvent(QCloseEvent *event) override;
#if defined(Q_OS_WIN)
bool isServiceRunning(QString name);