Correct save of currentDrawIndex
--HG-- branch : feature
This commit is contained in:
parent
8f47af2c56
commit
2fbd01d89a
|
@ -1822,8 +1822,11 @@ void MainWindow::ActionDetails(bool checked)
|
||||||
disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor);
|
disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor);
|
||||||
RestoreCurrentScene();
|
RestoreCurrentScene();
|
||||||
|
|
||||||
|
if(drawMode)
|
||||||
|
{
|
||||||
|
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
||||||
|
}
|
||||||
drawMode = false;
|
drawMode = false;
|
||||||
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
|
||||||
comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1);
|
comboBoxDraws->setCurrentIndex(comboBoxDraws->count()-1);
|
||||||
comboBoxDraws->setEnabled(false);
|
comboBoxDraws->setEnabled(false);
|
||||||
|
|
||||||
|
@ -1905,8 +1908,12 @@ void MainWindow::ActionLayout(bool checked)
|
||||||
ui->view->setScene(currentScene);
|
ui->view->setScene(currentScene);
|
||||||
disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor);
|
disconnect(ui->view, &VMainGraphicsView::NewFactor, sceneDraw, &VMainGraphicsScene::SetFactor);
|
||||||
|
|
||||||
|
if(drawMode)
|
||||||
|
{
|
||||||
|
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
||||||
|
}
|
||||||
drawMode = false;
|
drawMode = false;
|
||||||
currentDrawIndex = comboBoxDraws->currentIndex();//save current pattern peace
|
|
||||||
comboBoxDraws->setCurrentIndex(-1);
|
comboBoxDraws->setCurrentIndex(-1);
|
||||||
comboBoxDraws->setEnabled(false);
|
comboBoxDraws->setEnabled(false);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user