From: asv Date: Wed, 1 Feb 2006 12:03:08 +0000 (+0000) Subject: Additional fix for bug PAL11367: in addQuickPath() function the returned directory... X-Git-Tag: T2_2_9pre~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=482458c8d4bd3db731ea343b213deb3f0eb589d3;p=modules%2Fkernel.git Additional fix for bug PAL11367: in addQuickPath() function the returned directory on Debian was wrong (one level up). Now it should be OK. --- 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(); }