PD: Replace helper functions in subclasses of TaskDlgFeatureParameters with a template function
This commit is contained in:
@@ -88,7 +88,7 @@ bool ViewProvider::setEdit(int ModNum)
|
||||
Gui::TaskView::TaskDialog *dlg = Gui::Control().activeDialog();
|
||||
TaskDlgFeatureParameters *featureDlg = qobject_cast<TaskDlgFeatureParameters *>(dlg);
|
||||
// NOTE: if the dialog is not partDesigan dialog the featureDlg will be NULL
|
||||
if (featureDlg && featureDlg->viewProvider() != this) {
|
||||
if (featureDlg && featureDlg->getViewObject() != this) {
|
||||
featureDlg = nullptr; // another feature left open its task panel
|
||||
}
|
||||
if (dlg && !featureDlg) {
|
||||
|
||||
Reference in New Issue
Block a user