From 5da7290242e37aea3c96a56d61c245e4e2290b14 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Fri, 7 Aug 2015 15:55:58 -0700 Subject: [PATCH] Stopped process before showing the fingerprint message #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 7f3753ed..daf535a5 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -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);