Fix bug. Unloading multisize measurements doesn't hide size and height

comboboxes.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2017-08-17 19:59:24 +03:00
parent c368a956b8
commit bc037e15b5

View File

@ -1609,6 +1609,11 @@ void MainWindow::UnloadMeasurements()
if (doc->ListMeasurements().isEmpty()) if (doc->ListMeasurements().isEmpty())
{ {
watcher->removePath(AbsoluteMPath(qApp->GetPPath(), doc->MPath())); watcher->removePath(AbsoluteMPath(qApp->GetPPath(), doc->MPath()));
if (qApp->patternType() == MeasurementsType::Multisize)
{
ToolBarOption();
}
qApp->setPatternType(MeasurementsType::Unknown);
doc->SetMPath(QString()); doc->SetMPath(QString());
PatternChangesWereSaved(false); PatternChangesWereSaved(false);
ui->actionEditCurrent->setEnabled(false); ui->actionEditCurrent->setEnabled(false);