Skip to content

Commit

Permalink
Solved fingerprint message box race condition deskflow#4901
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinyu Hou committed Jul 31, 2015
1 parent 0612ba5 commit dbdc2a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/src/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -455,15 +455,15 @@ void MainWindow::checkFingerprint(const QString& line)
.arg(fingerprint),
QMessageBox::Yes | QMessageBox::No);

messageBoxAlreadyShown = false;

stopSynergy();

if (fingerprintReply == QMessageBox::Yes) {
// restart core process after trusting fingerprint.
Fingerprint::trustedServers().trust(fingerprint);
startSynergy();
}

messageBoxAlreadyShown = false;
}
}

Expand Down

0 comments on commit dbdc2a1

Please sign in to comment.