From bc037e15b52c42729ebbffe4b4bf9976d616f0b4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Thu, 17 Aug 2017 19:59:24 +0300 Subject: [PATCH] Fix bug. Unloading multisize measurements doesn't hide size and height comboboxes. --HG-- branch : feature --- src/app/valentina/mainwindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 9ee2bd557..16b69f42b 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1609,6 +1609,11 @@ void MainWindow::UnloadMeasurements() if (doc->ListMeasurements().isEmpty()) { watcher->removePath(AbsoluteMPath(qApp->GetPPath(), doc->MPath())); + if (qApp->patternType() == MeasurementsType::Multisize) + { + ToolBarOption(); + } + qApp->setPatternType(MeasurementsType::Unknown); doc->SetMPath(QString()); PatternChangesWereSaved(false); ui->actionEditCurrent->setEnabled(false);