From: akl Date: Tue, 8 Jul 2014 07:45:55 +0000 (+0400) Subject: Fixing 0022629: [CEA 1203] The option -r or --resources does not work X-Git-Tag: V7_5_0a1~37 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b44fb47e1e1f210d21575f4231a1104bdc14d194;p=modules%2Fgui.git Fixing 0022629: [CEA 1203] The option -r or --resources does not work --- diff --git a/src/SUIT/SUIT_ResourceMgr.cxx b/src/SUIT/SUIT_ResourceMgr.cxx index fd4e7b72d..dd2d9024f 100755 --- a/src/SUIT/SUIT_ResourceMgr.cxx +++ b/src/SUIT/SUIT_ResourceMgr.cxx @@ -85,7 +85,7 @@ QString SUIT_ResourceMgr::userFileName( const QString& appName, const bool for_l // Try config file, given in arguments for (int i = 1; i < arguments.count(); i++) { QRegExp rx ("--resources=(.+)"); - if ( rx.indexIn( arguments[i] ) >= 0 && rx.numCaptures() > 1 ) { + if ( rx.indexIn( arguments[i] ) >= 0 && rx.numCaptures() > 0 ) { QString file = rx.cap(1); QFileInfo fi (file); pathName = fi.absoluteFilePath();