]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
BUG 8990: Use HOME directory if selected one doesn't exist
authorvsv <vsv@opencascade.com>
Fri, 17 Jun 2005 11:02:57 +0000 (11:02 +0000)
committervsv <vsv@opencascade.com>
Fri, 17 Jun 2005 11:02:57 +0000 (11:02 +0000)
src/SUIT/SUIT_FileDlg.cxx

index 0c6b5df361c77731e1409d0245f464d8697a9667..0e4404a79ccacfe7ff3c7b5d1b8825992aa18d19 100755 (executable)
@@ -301,16 +301,18 @@ bool SUIT_FileDlg::processPath( const QString& path )
 */
 void SUIT_FileDlg::quickDir(const QString& dirPath)
 {
-  if ( !QDir(dirPath).exists() ) {
-    SUIT_MessageBox::error1(this, 
+  QString aPath = dirPath;
+  if ( !QDir(aPath).exists() ) {
+    aPath = QDir::homeDirPath();
+    /*    SUIT_MessageBox::error1(this, 
                           tr("ERR_ERROR"),
                           tr("ERR_DIR_NOT_EXIST").arg(dirPath), 
-                          tr("BUT_OK"));
+                          tr("BUT_OK"));*/
     
   }
-  else {
-    processPath(dirPath);
-  }
+  //  else {
+  processPath(aPath);
+    //  }
 }
 /*!
   Called when user presses "Add" button - adds current directory to quick directory