Navigation Menu

Skip to content

Commit

Permalink
+ do not allow to create primitives while a task panel is open to avo…
Browse files Browse the repository at this point in the history
…id mess on the undo/redo stack
  • Loading branch information
wwmayer committed Apr 24, 2016
1 parent de47702 commit 1b1c031
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Mod/PartDesign/Gui/CommandPrimitive.cpp
Expand Up @@ -33,6 +33,7 @@
#include <App/Document.h>
#include <Gui/Command.h>
#include <Gui/Action.h>
#include <Gui/Control.h>
#include <Gui/MainWindow.h>
#include <Gui/BitmapFactory.h>
#include <Gui/Application.h>
Expand Down Expand Up @@ -226,10 +227,7 @@ void CmdPrimtiveCompAdditive::languageChange()

bool CmdPrimtiveCompAdditive::isActive(void)
{
if (getActiveGuiDocument())
return true;
else
return false;
return (hasActiveDocument() && !Gui::Control().activeDialog());
}

DEF_STD_CMD_ACL(CmdPrimtiveCompSubtractive);
Expand Down Expand Up @@ -426,10 +424,7 @@ void CmdPrimtiveCompSubtractive::languageChange()

bool CmdPrimtiveCompSubtractive::isActive(void)
{
if (getActiveGuiDocument())
return true;
else
return false;
return (hasActiveDocument() && !Gui::Control().activeDialog());
}

//===========================================================================
Expand Down

0 comments on commit 1b1c031

Please sign in to comment.