Fixing increments update. When we update measurements the increments also must

be updated because some of them can have dependence from them.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2018-12-10 13:05:19 +02:00
parent 5b250caa46
commit 2ec9e656eb

View File

@ -1618,7 +1618,7 @@ void MainWindow::LoadIndividual()
PatternChangesWereSaved(false); PatternChangesWereSaved(false);
ui->actionEditCurrent->setEnabled(true); ui->actionEditCurrent->setEnabled(true);
statusBar()->showMessage(tr("Measurements loaded"), 5000); statusBar()->showMessage(tr("Measurements loaded"), 5000);
doc->LiteParseTree(Document::LiteParse); doc->LiteParseTree(Document::FullLiteParse);
UpdateWindowTitle(); UpdateWindowTitle();
} }
@ -1670,7 +1670,7 @@ void MainWindow::LoadMultisize()
PatternChangesWereSaved(false); PatternChangesWereSaved(false);
ui->actionEditCurrent->setEnabled(true); ui->actionEditCurrent->setEnabled(true);
statusBar()->showMessage(tr("Measurements loaded"), 5000); statusBar()->showMessage(tr("Measurements loaded"), 5000);
doc->LiteParseTree(Document::LiteParse); doc->LiteParseTree(Document::FullLiteParse);
UpdateWindowTitle(); UpdateWindowTitle();
@ -1811,7 +1811,7 @@ void MainWindow::SyncMeasurements()
qCDebug(vMainWindow, "%s", qUtf8Printable(msg)); qCDebug(vMainWindow, "%s", qUtf8Printable(msg));
statusBar()->showMessage(msg, 5000); statusBar()->showMessage(msg, 5000);
VWidgetPopup::PopupMessage(this, msg); VWidgetPopup::PopupMessage(this, msg);
doc->LiteParseTree(Document::LiteParse); doc->LiteParseTree(Document::FullLiteParse);
mChanges = false; mChanges = false;
mChangesAsked = true; mChangesAsked = true;
UpdateWindowTitle(); UpdateWindowTitle();