]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Clear text in ModuleBase_WidgetFeatureSelector when object deselected.
authordbv <dbv@opencascade.com>
Tue, 20 Sep 2016 14:29:16 +0000 (17:29 +0300)
committerdbv <dbv@opencascade.com>
Tue, 20 Sep 2016 14:29:16 +0000 (17:29 +0300)
src/ModuleBase/ModuleBase_WidgetFeatureSelector.cpp

index 9396183d350c154f492bbb486555d94341c04106..74da1b3af54c2d36eaad54e170b7c8be3adfa1e2 100644 (file)
@@ -184,6 +184,8 @@ void ModuleBase_WidgetFeatureSelector::updateSelectionName()
   if (anObject.get() != NULL) {\r
     std::string aName = anObject->data()->name();\r
     myTextLine->setText(QString::fromStdString(aName));\r
+  } else {\r
+    myTextLine->clear();\r
   }\r
 }\r
 \r