+ do not allow to create primitives while a task panel is open to avoid mess on the undo/redo stack
This commit is contained in:
parent
de47702b17
commit
1b1c0316d4
|
@ -33,6 +33,7 @@
|
||||||
#include <App/Document.h>
|
#include <App/Document.h>
|
||||||
#include <Gui/Command.h>
|
#include <Gui/Command.h>
|
||||||
#include <Gui/Action.h>
|
#include <Gui/Action.h>
|
||||||
|
#include <Gui/Control.h>
|
||||||
#include <Gui/MainWindow.h>
|
#include <Gui/MainWindow.h>
|
||||||
#include <Gui/BitmapFactory.h>
|
#include <Gui/BitmapFactory.h>
|
||||||
#include <Gui/Application.h>
|
#include <Gui/Application.h>
|
||||||
|
@ -226,10 +227,7 @@ void CmdPrimtiveCompAdditive::languageChange()
|
||||||
|
|
||||||
bool CmdPrimtiveCompAdditive::isActive(void)
|
bool CmdPrimtiveCompAdditive::isActive(void)
|
||||||
{
|
{
|
||||||
if (getActiveGuiDocument())
|
return (hasActiveDocument() && !Gui::Control().activeDialog());
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DEF_STD_CMD_ACL(CmdPrimtiveCompSubtractive);
|
DEF_STD_CMD_ACL(CmdPrimtiveCompSubtractive);
|
||||||
|
@ -426,10 +424,7 @@ void CmdPrimtiveCompSubtractive::languageChange()
|
||||||
|
|
||||||
bool CmdPrimtiveCompSubtractive::isActive(void)
|
bool CmdPrimtiveCompSubtractive::isActive(void)
|
||||||
{
|
{
|
||||||
if (getActiveGuiDocument())
|
return (hasActiveDocument() && !Gui::Control().activeDialog());
|
||||||
return true;
|
|
||||||
else
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//===========================================================================
|
//===========================================================================
|
||||||
|
|
Loading…
Reference in New Issue
Block a user