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

Introduced by 9bf0d91
This commit is contained in:
0penBrain
2022-12-03 08:32:49 +01:00
parent fa0b80d264
commit cf07ab2dcf

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