From e4cf5980c87521a5c08df0b7f0afa07d4b7fce30 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Wed, 22 Mar 2017 12:12:17 +0200 Subject: [PATCH] Fix bug. When we switch to the Detail mode should be activated specific tool box section. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 2 +- src/app/valentina/mainwindow.ui | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 43753ccee..618ee18b3 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -2291,7 +2291,7 @@ void MainWindow::ActionDetails(bool checked) mode = Draw::Modeling; SetEnableTool(true); SetEnableWidgets(true); - ui->toolBox->setCurrentIndex(5); + ui->toolBox->setCurrentIndex(ui->toolBox->indexOf(ui->detailPage)); if (qApp->patternType() == MeasurementsType::Standard) { diff --git a/src/app/valentina/mainwindow.ui b/src/app/valentina/mainwindow.ui index 6b2c120fd..d2efb063d 100644 --- a/src/app/valentina/mainwindow.ui +++ b/src/app/valentina/mainwindow.ui @@ -55,7 +55,7 @@ 0 0 - 100 + 117 358 @@ -427,7 +427,7 @@ 0 0 - 100 + 130 110 @@ -536,7 +536,7 @@ 0 0 - 100 + 130 248 @@ -798,7 +798,7 @@ 0 0 - 100 + 130 248 @@ -1063,7 +1063,7 @@ 0 0 - 100 + 130 58 @@ -1143,8 +1143,8 @@ 0 0 - 100 - 196 + 130 + 326 @@ -1316,7 +1316,7 @@ - + 0 @@ -1508,8 +1508,8 @@ 0 0 - 100 - 58 + 130 + 326 @@ -2638,8 +2638,8 @@ - +