From: vsr Date: Wed, 23 Nov 2011 09:50:14 +0000 (+0000) Subject: Fix a bug: user preferences file is incorrectly detected on Windows X-Git-Tag: V6_4_0rc1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4fdfb41119132685254ecc1581bcac62cc7a5996;p=modules%2Fgui.git Fix a bug: user preferences file is incorrectly detected on Windows --- diff --git a/src/Session/SALOME_Session_Server.cxx b/src/Session/SALOME_Session_Server.cxx index 3dd788625..e8c0e7145 100755 --- a/src/Session/SALOME_Session_Server.cxx +++ b/src/Session/SALOME_Session_Server.cxx @@ -178,7 +178,11 @@ protected: { long id = -1; if ( !myExtAppName.isEmpty() ) { +#ifdef WIN32 + QRegExp exp( QString( "%1\\.%2\\.([a-zA-Z0-9.]+)$" ).arg( myExtAppName ).arg( currentFormat() ) ); +#else QRegExp exp( QString( "\\.%1rc\\.([a-zA-Z0-9.]+)$" ).arg( myExtAppName ) ); +#endif QRegExp vers_exp( "^([0-9]+)([A-Za-z]?)([0-9]*)$" ); QString fname = QFileInfo( _fname ).fileName();