diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 234b4e24a..6e154460f 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1822,8 +1822,11 @@ void MainWindow::ActionDetails(bool checked) disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor); RestoreCurrentScene(); - drawMode = false; - currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace + if(drawMode) + { + currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace + drawMode = false; + } comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1); comboBoxDraws->setEnabled(false); @@ -1905,8 +1908,11 @@ void MainWindow::ActionLayout(bool checked) ui->view->setScene(currentScene); disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor); - drawMode = false; - currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace + if(drawMode) + { + currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace + drawMode = false; + } comboBoxDraws->setCurrentIndex(-1); comboBoxDraws->setEnabled(false);