Stopped process before showing the fingerprint message #4901

This commit is contained in:
Jerry (Xinyu Hou) 2015-08-07 15:55:58 -07:00 committed by Nick Bolton
parent 588fb4b805
commit 5da7290242

View File

@ -439,6 +439,8 @@ void MainWindow::checkFingerprint(const QString& line)
static bool messageBoxAlreadyShown = false;
if (!messageBoxAlreadyShown) {
stopSynergy();
messageBoxAlreadyShown = true;
QMessageBox::StandardButton fingerprintReply =
QMessageBox::information(
@ -455,8 +457,6 @@ void MainWindow::checkFingerprint(const QString& line)
.arg(fingerprint),
QMessageBox::Yes | QMessageBox::No);
stopSynergy();
if (fingerprintReply == QMessageBox::Yes) {
// restart core process after trusting fingerprint.
Fingerprint::trustedServers().trust(fingerprint);