Solved fingerprint message box race condition #4901

This commit is contained in:
Xinyu Hou 2015-07-30 17:15:02 -07:00 committed by Jerry (Xinyu Hou)
parent 0612ba585d
commit dbdc2a1e29

View File

@ -455,8 +455,6 @@ void MainWindow::checkFingerprint(const QString& line)
.arg(fingerprint),
QMessageBox::Yes | QMessageBox::No);
messageBoxAlreadyShown = false;
stopSynergy();
if (fingerprintReply == QMessageBox::Yes) {
@ -464,6 +462,8 @@ void MainWindow::checkFingerprint(const QString& line)
Fingerprint::trustedServers().trust(fingerprint);
startSynergy();
}
messageBoxAlreadyShown = false;
}
}