From: vsv Date: Fri, 17 Jun 2005 11:02:57 +0000 (+0000) Subject: BUG 8990: Use HOME directory if selected one doesn't exist X-Git-Tag: T3_0_0_a4~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bfa533117539c108c7e58cdf424e18560bb44d89;p=modules%2Fgui.git BUG 8990: Use HOME directory if selected one doesn't exist --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index 0c6b5df36..0e4404a79 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -301,16 +301,18 @@ bool SUIT_FileDlg::processPath( const QString& path ) */ void SUIT_FileDlg::quickDir(const QString& dirPath) { - if ( !QDir(dirPath).exists() ) { - SUIT_MessageBox::error1(this, + QString aPath = dirPath; + if ( !QDir(aPath).exists() ) { + aPath = QDir::homeDirPath(); + /* SUIT_MessageBox::error1(this, tr("ERR_ERROR"), tr("ERR_DIR_NOT_EXIST").arg(dirPath), - tr("BUT_OK")); + tr("BUT_OK"));*/ } - else { - processPath(dirPath); - } + // else { + processPath(aPath); + // } } /*! Called when user presses "Add" button - adds current directory to quick directory