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;
|
||||
}
|
||||
|
||||
static bool messageBoxAlreadyShown = false;
|
||||
|
||||
if (!messageBoxAlreadyShown) {
|
||||
messageBoxAlreadyShown = true;
|
||||
QMessageBox::StandardButton fingerprintReply =
|
||||
QMessageBox::information(
|
||||
this, tr("Security question"),
|
||||
|
@ -451,6 +455,8 @@ void MainWindow::checkFingerprint(const QString& line)
|
|||
.arg(fingerprint),
|
||||
QMessageBox::Yes | QMessageBox::No);
|
||||
|
||||
messageBoxAlreadyShown = false;
|
||||
|
||||
stopSynergy();
|
||||
|
||||
if (fingerprintReply == QMessageBox::Yes) {
|
||||
|
@ -459,6 +465,7 @@ void MainWindow::checkFingerprint(const QString& line)
|
|||
startSynergy();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool MainWindow::autoHide()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue