diff --git a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.cpp b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.cpp index 4f9e46c4acc92e45710a057dd4ba26168e575d24..41038df4bfeba8f4f7b4e0a12026445523955336 100644 --- a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.cpp +++ b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/ApplicationDatabaseController.cpp @@ -88,6 +88,8 @@ void ApplicationDatabaseController::updatePackages() } treemodel.update(); + // For some unknown reason, resetting the smart pointer is necessary to see an updated results list. + model.reset(new FilterableTreeModelSortFilterProxyModel()); model->setSourceModel(&treemodel); emit modelUpdated(model); diff --git a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.cpp b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.cpp index 9fca3c52e1485103034800b9fbd3819a501a63ac..add4f8e1f86dd2efeaad5cfb32a239270b0e76a2 100644 --- a/source/ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.cpp +++ b/source/ArmarXGui/gui-plugins/ScenarioManager/controller/SettingsController.cpp @@ -250,6 +250,8 @@ void SettingsController::updateModel() } treemodel->update(); + // For some unknown reason, resetting the smart pointer is necessary to see an updated results list. + model.reset(new FilterableTreeModelSortFilterProxyModel()); model->setSourceModel(treemodel.get()); settingsDialog.setModel(model); }