From 4d277f392ed7c443caff825e4502b64e5fe52dde Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 23 Dec 2016 11:11:00 +0200 Subject: [PATCH] Fix switching to Layout page when enable Layout mode. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 2 +- src/app/valentina/mainwindow.ui | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 10eeb7f93..1c8e03d7b 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -2276,7 +2276,7 @@ void MainWindow::ActionLayout(bool checked) mode = Draw::Layout; SetEnableTool(true); SetEnableWidgets(true); - ui->toolBox->setCurrentIndex(6); + ui->toolBox->setCurrentIndex(ui->toolBox->indexOf(ui->layoutPage)); mouseCoordinate->setText(""); diff --git a/src/app/valentina/mainwindow.ui b/src/app/valentina/mainwindow.ui index 473be076f..cbfe05e4f 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -48,7 +48,7 @@ Tools - 4 + 7 @@ -1425,7 +1425,7 @@ - + 0 @@ -2560,8 +2560,8 @@ - +