[TD]fix LL edit when no MDI

This commit is contained in:
wandererfan
2020-02-16 12:19:33 -05:00
committed by WandererFan
parent 3988824b67
commit e8417c6268
3 changed files with 88 additions and 22 deletions

View File

@@ -27,6 +27,8 @@
#ifndef _PreComp_
#endif
#include <QMessageBox>
/// Here the FreeCAD includes sorted by Base,App,Gui......
#include <Base/Console.h>
#include <Base/Parameter.h>
@@ -96,7 +98,6 @@ bool ViewProviderLeader::setEdit(int ModNum)
if (Gui::Control().activeDialog()) { //TaskPanel already open!
return false;
}
// clear the selection (convenience)
Gui::Selection().clearSelection();
Gui::Control().showDialog(new TaskDlgLeaderLine(this));
return true;