From 4fdfb41119132685254ecc1581bcac62cc7a5996 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 23 Nov 2011 09:50:14 +0000 Subject: [PATCH] Fix a bug: user preferences file is incorrectly detected on Windows --- src/Session/SALOME_Session_Server.cxx | 4 ++++ 1 file changed, 4 insertions(+) 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(); -- 2.39.2