Fixed issue #488. Error: Measurements File Sync dialog box never returns. Win10,

MSVC.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-05-08 19:25:51 +03:00
parent 49bee0cada
commit e5a84ccd14

View File

@ -1531,6 +1531,7 @@ void MainWindow::OnWindowFocusChanged(QWidget *old, QWidget *now)
{// focus IN
if (mChanges && not mChangesAsked)
{
mChangesAsked = true;
const auto answer = QMessageBox::question(this, tr("Measurements"),
tr("Measurements was changed. Do you want to sync measurements now?"),
QMessageBox::Yes|QMessageBox::No, QMessageBox::Yes);
@ -1538,7 +1539,6 @@ void MainWindow::OnWindowFocusChanged(QWidget *old, QWidget *now)
{
SyncMeasurements();
}
mChangesAsked = true;
}
}