From dbdc2a1e29fc8ac2bf5d6fbbc5d02c47494f9b4d Mon Sep 17 00:00:00 2001 From: Xinyu Hou Date: Thu, 30 Jul 2015 17:15:02 -0700 Subject: [PATCH] Solved fingerprint message box race condition #4901 --- src/gui/src/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 126a4cdb..7f3753ed 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -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; } }