+ fixes #0001447: Crash when opening task dialog for orthographic projection while another task dialog is open
This commit is contained in:
@@ -298,7 +298,7 @@ void CmdDrawingNewView::activated(int iMsg)
|
||||
// Drawing_OrthoView
|
||||
//===========================================================================
|
||||
|
||||
DEF_STD_CMD(CmdDrawingOrthoViews);
|
||||
DEF_STD_CMD_A(CmdDrawingOrthoViews);
|
||||
|
||||
CmdDrawingOrthoViews::CmdDrawingOrthoViews()
|
||||
: Command("Drawing_OrthoViews")
|
||||
@@ -331,6 +331,13 @@ void CmdDrawingOrthoViews::activated(int iMsg)
|
||||
Gui::Control().showDialog(new TaskDlgOrthoViews());
|
||||
}
|
||||
|
||||
bool CmdDrawingOrthoViews::isActive(void)
|
||||
{
|
||||
if (Gui::Control().activeDialog())
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
//===========================================================================
|
||||
// Drawing_OpenBrowserView
|
||||
|
||||
Reference in New Issue
Block a user