From 4c6c03acc93514abe54d989ba2a9063eaf9bcd08 Mon Sep 17 00:00:00 2001 From: mzn Date: Thu, 9 Jun 2005 09:13:01 +0000 Subject: [PATCH] Correction. --- src/SUIT/SUIT_FileDlg.cxx | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index d536079c9..ed53aad95 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -117,14 +117,18 @@ myOpen( open ) } setMode( myOpen ? ExistingFile : AnyFile ); setCaption( myOpen ? tr( "INF_DESK_DOC_OPEN" ) : tr( "INF_DESK_DOC_SAVE" ) ); - if (myLastVisitedPath.isNull() || myLastVisitedPath.isEmpty()) { - // If no last visited path exists -> switch to the first preferred path - processPath(myQuickCombo->text(0)); - } - else if ( !processPath(myLastVisitedPath) ) { - // If last visited path doesn't exist -> switch to the first preferred path - processPath(myQuickCombo->text(0)); + + if (showQuickDir) { + if (myLastVisitedPath.isNull() || myLastVisitedPath.isEmpty()) { + // If no last visited path exists -> switch to the first preferred path + processPath(myQuickCombo->text(0)); + } + else if ( !processPath(myLastVisitedPath) ) { + // If last visited path doesn't exist -> switch to the first preferred path + processPath(myQuickCombo->text(0)); + } } + myValidator = new SUIT_FileValidator(this); } -- 2.39.2