From b44fb47e1e1f210d21575f4231a1104bdc14d194 Mon Sep 17 00:00:00 2001 From: akl Date: Tue, 8 Jul 2014 11:45:55 +0400 Subject: [PATCH] Fixing 0022629: [CEA 1203] The option -r or --resources does not work --- src/SUIT/SUIT_ResourceMgr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2