]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Additional fix for bug PAL11367: in addQuickPath() function the returned directory...
authorasv <asv@opencascade.com>
Wed, 1 Feb 2006 12:03:08 +0000 (12:03 +0000)
committerasv <asv@opencascade.com>
Wed, 1 Feb 2006 12:03:08 +0000 (12:03 +0000)
Now it should be OK.

src/SALOMEGUI/QAD_FileDlg.cxx

index 3748e004354f590a95e62ef769e61470254a6866..032349b6971da0a04463483642113cbcebaa0a23 100644 (file)
@@ -425,5 +425,9 @@ QString QAD_FileDlg::dirPath() const
   if ( !mySelectedFile.isNull() )
     return QFileInfo( mySelectedFile ).dirPath();
   
+  const QDir* aDir = dir();
+  if ( aDir->exists() )
+    return aDir->absPath();
+
   return QFileDialogP::dirPath();
 }