From 482458c8d4bd3db731ea343b213deb3f0eb589d3 Mon Sep 17 00:00:00 2001 From: asv Date: Wed, 1 Feb 2006 12:03:08 +0000 Subject: [PATCH] Additional fix for bug PAL11367: in addQuickPath() function the returned directory on Debian was wrong (one level up). Now it should be OK. --- src/SALOMEGUI/QAD_FileDlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SALOMEGUI/QAD_FileDlg.cxx b/src/SALOMEGUI/QAD_FileDlg.cxx index 3748e0043..032349b69 100644 --- a/src/SALOMEGUI/QAD_FileDlg.cxx +++ b/src/SALOMEGUI/QAD_FileDlg.cxx @@ -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(); } -- 2.39.2