From: mzn Date: Thu, 9 Jun 2005 09:13:01 +0000 (+0000) Subject: Correction. X-Git-Tag: T3_0_0_a3~27 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4c6c03acc93514abe54d989ba2a9063eaf9bcd08;p=modules%2Fgui.git Correction. --- 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); }