Stopped multiple fingerprint message boxes popping up #4910
This commit is contained in:
parent
d70c19b099
commit
0612ba585d
|
@ -436,6 +436,10 @@ void MainWindow::checkFingerprint(const QString& line)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static bool messageBoxAlreadyShown = false;
|
||||||
|
|
||||||
|
if (!messageBoxAlreadyShown) {
|
||||||
|
messageBoxAlreadyShown = true;
|
||||||
QMessageBox::StandardButton fingerprintReply =
|
QMessageBox::StandardButton fingerprintReply =
|
||||||
QMessageBox::information(
|
QMessageBox::information(
|
||||||
this, tr("Security question"),
|
this, tr("Security question"),
|
||||||
|
@ -451,6 +455,8 @@ 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) {
|
||||||
|
@ -458,6 +464,7 @@ void MainWindow::checkFingerprint(const QString& line)
|
||||||
Fingerprint::trustedServers().trust(fingerprint);
|
Fingerprint::trustedServers().trust(fingerprint);
|
||||||
startSynergy();
|
startSynergy();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MainWindow::autoHide()
|
bool MainWindow::autoHide()
|
||||||
|
|
Loading…
Reference in New Issue