]> SALOME platform Git repositories - modules/gui.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:34 +0000 (12:03 +0000)
committerasv <asv@opencascade.com>
Wed, 1 Feb 2006 12:03:34 +0000 (12:03 +0000)
Now it should be OK.

src/SUIT/SUIT_FileDlg.cxx

index 9032af17bd8c10c639a9a72a3949e1e18bae0e9c..ec580efd639c20c984d8e6e7e8d5e1654e1c94aa 100755 (executable)
@@ -530,6 +530,10 @@ QString SUIT_FileDlg::dirPath() const
 {
   if ( !mySelectedFile.isNull() )
     return QFileInfo( mySelectedFile ).dirPath();
+
+  const QDir* aDir = dir();
+  if ( aDir->exists() )
+    return aDir->absPath();
   
   return QFileDialog::dirPath();
 }