From: dbv Date: Tue, 20 Sep 2016 14:29:16 +0000 (+0300) Subject: Clear text in ModuleBase_WidgetFeatureSelector when object deselected. X-Git-Tag: V_2.5.1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7428c5765bb1b6e8b21de1e971d7d355e07240c6;p=modules%2Fshaper.git Clear text in ModuleBase_WidgetFeatureSelector when object deselected. --- 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(); } }