Fix switching to Layout page when enable Layout mode.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-12-23 11:11:00 +02:00
parent c9e9fb57d5
commit 4d277f392e
2 changed files with 4 additions and 4 deletions

View File

@ -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("");

View File

@ -48,7 +48,7 @@
<string>Tools</string>
</property>
<property name="currentIndex">
<number>4</number>
<number>7</number>
</property>
<widget class="QWidget" name="page">
<property name="geometry">
@ -1425,7 +1425,7 @@
</item>
</layout>
</widget>
<widget class="QWidget" name="page_6">
<widget class="QWidget" name="layoutPage">
<property name="geometry">
<rect>
<x>0</x>
@ -2560,8 +2560,8 @@
</customwidget>
</customwidgets>
<resources>
<include location="../../libs/vmisc/share/resources/icon.qrc"/>
<include location="share/resources/toolicon.qrc"/>
<include location="../../libs/vmisc/share/resources/icon.qrc"/>
</resources>
<connections/>
</ui>