]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Save string from dialog
authornds <nds@opencascade.com>
Wed, 21 Nov 2007 16:11:52 +0000 (16:11 +0000)
committernds <nds@opencascade.com>
Wed, 21 Nov 2007 16:11:52 +0000 (16:11 +0000)
src/SUIT/SUIT_FileDlg.cxx

index 8dc7fd64c76ac333c78d55e31053020c2284984a..6bebf3c9cc218b06f39b60c8f4bf8e70d8121419 100755 (executable)
@@ -272,6 +272,13 @@ void SUIT_FileDlg::accept()
 
     if ( acceptData() )
     {
+      // NDS: needs to fill string mySelected file
+      QString fn;
+      QStringList lst = QFileDialog::selectedFiles();
+      if ( !lst.isEmpty() )
+        fn = lst.first();
+      mySelectedFile = fn;
+      // end NDS
       myLastVisitedPath = directory().path();
       QFileDialog::accept();        
 //      myAccepted = true;