From bfa533117539c108c7e58cdf424e18560bb44d89 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 17 Jun 2005 11:02:57 +0000 Subject: [PATCH] BUG 8990: Use HOME directory if selected one doesn't exist --- src/SUIT/SUIT_FileDlg.cxx | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 -- 2.39.2