Move 'drawMode = false' inside to 'if' statement

--HG--
branch : feature
This commit is contained in:
Valentina Zhuravska 2015-11-25 11:52:50 +02:00
parent 2fbd01d89a
commit 3d5e8c211d

View File

@ -1825,8 +1825,8 @@ void MainWindow::ActionDetails(bool checked)
if(drawMode) if(drawMode)
{ {
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
}
drawMode = false; drawMode = false;
}
comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1); comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1);
comboBoxDraws->setEnabled(false); comboBoxDraws->setEnabled(false);
@ -1911,9 +1911,8 @@ void MainWindow::ActionLayout(bool checked)
if(drawMode) if(drawMode)
{ {
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
}
drawMode = false; drawMode = false;
}
comboBoxDraws->setCurrentIndex(-1); comboBoxDraws->setCurrentIndex(-1);
comboBoxDraws->setEnabled(false); comboBoxDraws->setEnabled(false);