[CrashFix]Sketcher: prevent crash at FC closure when edit control panel is disabled, fixes #7931

Introduced by bf04c0e
This commit is contained in:
0penBrain
2022-12-03 08:32:49 +01:00
parent 19437bd7be
commit 53804d7e4d

View File

@@ -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 ===============================================================