Stopped process before showing the fingerprint message #4901
This commit is contained in:
parent
588fb4b805
commit
5da7290242
|
@ -439,6 +439,8 @@ void MainWindow::checkFingerprint(const QString& line)
|
||||||
static bool messageBoxAlreadyShown = false;
|
static bool messageBoxAlreadyShown = false;
|
||||||
|
|
||||||
if (!messageBoxAlreadyShown) {
|
if (!messageBoxAlreadyShown) {
|
||||||
|
stopSynergy();
|
||||||
|
|
||||||
messageBoxAlreadyShown = true;
|
messageBoxAlreadyShown = true;
|
||||||
QMessageBox::StandardButton fingerprintReply =
|
QMessageBox::StandardButton fingerprintReply =
|
||||||
QMessageBox::information(
|
QMessageBox::information(
|
||||||
|
@ -455,8 +457,6 @@ void MainWindow::checkFingerprint(const QString& line)
|
||||||
.arg(fingerprint),
|
.arg(fingerprint),
|
||||||
QMessageBox::Yes | QMessageBox::No);
|
QMessageBox::Yes | QMessageBox::No);
|
||||||
|
|
||||||
stopSynergy();
|
|
||||||
|
|
||||||
if (fingerprintReply == QMessageBox::Yes) {
|
if (fingerprintReply == QMessageBox::Yes) {
|
||||||
// restart core process after trusting fingerprint.
|
// restart core process after trusting fingerprint.
|
||||||
Fingerprint::trustedServers().trust(fingerprint);
|
Fingerprint::trustedServers().trust(fingerprint);
|
||||||
|
|
Loading…
Reference in New Issue