[CrashFix]Sketcher: prevent crash at FC closure when edit control panel is disabled, fixes #7931
Introduced by bf04c0e
This commit is contained in:
@@ -81,6 +81,10 @@ TaskDlgEditSketch::~TaskDlgEditSketch()
|
||||
std::vector<QWidget*>::iterator it = std::find(Content.begin(), Content.end(), SolverAdvanced);
|
||||
if (it == Content.end())
|
||||
Content.push_back(SolverAdvanced);
|
||||
// same thing for edit control panel
|
||||
it = std::find(Content.begin(), Content.end(), General);
|
||||
if (it == Content.end())
|
||||
Content.push_back(General);
|
||||
}
|
||||
|
||||
//==== calls from the TaskView ===============================================================
|
||||
|
||||
Reference in New Issue
Block a user