From: asl Date: Mon, 7 Nov 2005 10:40:49 +0000 (+0000) Subject: PAL9935 - Error message must appear if non-existing directory is selected in "quick... X-Git-Tag: V3_1_0a3~60 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dbb3740e9189aac674935dc948b3408712252cc2;p=modules%2Fgui.git PAL9935 - Error message must appear if non-existing directory is selected in "quick dir" list. --- diff --git a/src/SUIT/SUIT_FileDlg.cxx b/src/SUIT/SUIT_FileDlg.cxx index fffee22ab..cb8a71b69 100755 --- a/src/SUIT/SUIT_FileDlg.cxx +++ b/src/SUIT/SUIT_FileDlg.cxx @@ -371,15 +371,13 @@ void SUIT_FileDlg::quickDir(const QString& dirPath) 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"));*/ - + SUIT_MessageBox::error1(this, + tr("ERR_ERROR"), + tr("ERR_DIR_NOT_EXIST").arg(dirPath), + tr("BUT_OK")); } - // else { + else processPath(aPath); - // } } /*! Called when user presses "Add" button - adds current directory to quick directory