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
1 changed files with 2 additions and 2 deletions

View File

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