]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug PAL11406 : In "Browse", changing the workspace sets the old input values.
authormkr <mkr@opencascade.com>
Mon, 30 Jan 2006 11:40:19 +0000 (11:40 +0000)
committermkr <mkr@opencascade.com>
Mon, 30 Jan 2006 11:40:19 +0000 (11:40 +0000)
src/SUPERVGUI/SUPERVGUI_BrowseNodeDlg.cxx
src/SUPERVGUI/SUPERVGUI_BrowseNodeDlg.h

index 4441a9d1fdf384a3499b537883a6386f401df69d..54cf5fa61d8bdafcbbb7e45159759d2cbf1adbfb 100644 (file)
@@ -215,7 +215,8 @@ SUPERVGUI_BrowseNodeDlg::~SUPERVGUI_BrowseNodeDlg() {
 void SUPERVGUI_BrowseNodeDlg::setValues() {
   SUPERVGUI_PortField* aField;
   for ( aField = myPortsList.first(); aField; aField = myPortsList.next() ) {
-    aField->updateGUI();
+    if ( aField->getData().isEmpty() || aField->getData().isNull() ) // mkr : PAL11406
+      aField->updateGUI();
   }
 }
 
index 19563ce5a758c077b4895c822bbd7b61321a32cc..b22fda2fbf7ca0c3769826142cbd2650cf857ae7 100644 (file)
@@ -29,8 +29,9 @@ public:
 
   bool isEditable () { return myIsEditable; }
 
-  void setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
-  void updateGUI()   { myValue->setText( myPort->ToString() ); }
+  QString getData() const { return myValue->text(); } // mkr : PAL11406
+  void    setData( const QString& data ) { myValue->setText( data ); myValue->home( false ); }
+  void    updateGUI()   { myValue->setText( myPort->ToString() ); }
 
   bool setNewValue();