From 7428c5765bb1b6e8b21de1e971d7d355e07240c6 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 20 Sep 2016 17:29:16 +0300 Subject: [PATCH] Clear text in ModuleBase_WidgetFeatureSelector when object deselected. --- src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp index 9396183d3..74da1b3af 100644 --- a/src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp +++ b/src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp @@ -184,6 +184,8 @@ void ModuleBase_WidgetFeatureSelector::updateSelectionName() if (anObject.get() != NULL) { std::string aName = anObject->data()->name(); myTextLine->setText(QString::fromStdString(aName)); + } else { + myTextLine->clear(); } } -- 2.39.2