From 196e559b6996438bb85fc2a5fc6725f3c3d26f42 Mon Sep 17 00:00:00 2001 From: asv Date: Wed, 1 Feb 2006 12:03:34 +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/SUIT/SUIT_FileDlg.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index 9032af17b..ec580efd6 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -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(); } -- 2.39.2