]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Provide Auto-apply management for Salome desktop
authorvsv <vsv@opencascade.com>
Wed, 24 Oct 2018 13:32:06 +0000 (16:32 +0300)
committervsv <vsv@opencascade.com>
Wed, 24 Oct 2018 13:32:06 +0000 (16:32 +0300)
src/XGUI/XGUI_Workshop.cpp

index 90e33e3155bef50767f7d3c6bbc4f5f2f3e67ddd..7e5f8bf3c0d632574199a1a499fc58fcce789596 100755 (executable)
@@ -436,10 +436,10 @@ void XGUI_Workshop::initMenu()
   aAction = salomeConnector()->addDesktopCommand("AUTOCOMPUTE_CMD", tr("Block auto-apply"),
                                               tr("Blocks immediate apply of modifications"),
                                               QIcon(":pictures/autoapply.png"), QKeySequence(),
-                                              true, "MEN_DESK_EDIT");
+                                              false, "MEN_DESK_EDIT");
   salomeConnector()->addActionInToolbar( aAction, aToolBarTitle );
 
-  connect(aAction, SIGNAL(toggled(bool)), this, SLOT(onAutoApply(bool)));
+  connect(aAction, SIGNAL(triggered(bool)), this, SLOT(onAutoApply()));
 
   salomeConnector()->addDesktopMenuSeparator("MEN_DESK_EDIT");