From d9178308688ccc0954283538310523ca07f1133a Mon Sep 17 00:00:00 2001 From: dismine Date: Wed, 24 Sep 2014 13:23:55 +0300 Subject: [PATCH] Hide options when select new tool. --HG-- branch : develop --- src/app/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/mainwindow.cpp b/src/app/mainwindow.cpp index 4129ac41a..e5684830a 100644 --- a/src/app/mainwindow.cpp +++ b/src/app/mainwindow.cpp @@ -265,6 +265,7 @@ void MainWindow::SetToolButton(bool checked, Tool t, const QString &cursor, cons connect(dialogTool, &DialogTool::DialogClosed, this, closeDialogSlot); connect(dialogTool, &DialogTool::ToolTip, this, &MainWindow::ShowToolTip); connect(doc, &VPattern::FullUpdateFromFile, dialogTool, &DialogTool::UpdateList); + ui->view->itemClicked(nullptr); } else { @@ -306,6 +307,7 @@ void MainWindow::SetToolButtonWithApply(bool checked, Tool t, const QString &cur connect(dialogTool, &DialogTool::ToolTip, this, &MainWindow::ShowToolTip); connect(doc, &VPattern::FullUpdateFromFile, dialogTool, &DialogTool::UpdateList); connect(ui->view, &VMainGraphicsView::MouseRelease, this, &MainWindow::ClickEndVisualization); + ui->view->itemClicked(nullptr); } else {