File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -141,6 +141,13 @@ bool CQParameterOverviewWidget::updateProtected(ListViews::ObjectType objectType
141
141
}
142
142
}
143
143
144
+ if (action == ListViews::DELETE && objectType == ListViews::ObjectType::MODELPARAMETERSET)
145
+ {
146
+ mpParameterSet = NULL ;
147
+ CopasiUI3Window::getMainWindow ()->getMainWidget ()->switchToOtherWidget (ListViews::WidgetType::ParameterSets, CRegisteredCommonName ());
148
+ return true ;
149
+ }
150
+
144
151
if (mIgnoreUpdates || !isVisible ())
145
152
{
146
153
return true ;
@@ -175,6 +182,7 @@ bool CQParameterOverviewWidget::updateProtected(ListViews::ObjectType objectType
175
182
case ListViews::DELETE:
176
183
mObjectCN .clear ();
177
184
mpObject = NULL ;
185
+ mpParameterSet = NULL ;
178
186
179
187
enterProtected ();
180
188
break ;
@@ -361,6 +369,8 @@ void CQParameterOverviewWidget::slotBtnDelete()
361
369
ListViews::addUndoMetaData (this , UndoData);
362
370
363
371
slotNotifyChanges (mpDataModel->applyData (UndoData));
372
+
373
+ mpParameterSet = NULL ;
364
374
}
365
375
366
376
// virtual
You can’t perform that action at this time.
0 commit comments