Move 'drawMode = false' inside to 'if' statement
--HG-- branch : feature
This commit is contained in:
parent
2fbd01d89a
commit
3d5e8c211d
|
@ -1825,8 +1825,8 @@ void MainWindow::ActionDetails(bool checked)
|
|||
if(drawMode)
|
||||
{
|
||||
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
||||
drawMode = false;
|
||||
}
|
||||
drawMode = false;
|
||||
comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1);
|
||||
comboBoxDraws->setEnabled(false);
|
||||
|
||||
|
@ -1911,9 +1911,8 @@ void MainWindow::ActionLayout(bool checked)
|
|||
if(drawMode)
|
||||
{
|
||||
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
||||
drawMode = false;
|
||||
}
|
||||
drawMode = false;
|
||||
|
||||
comboBoxDraws->setCurrentIndex(-1);
|
||||
comboBoxDraws->setEnabled(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user