]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix a bug: user preferences file is incorrectly detected on Windows
authorvsr <vsr@opencascade.com>
Wed, 23 Nov 2011 09:50:14 +0000 (09:50 +0000)
committervsr <vsr@opencascade.com>
Wed, 23 Nov 2011 09:50:14 +0000 (09:50 +0000)
src/Session/SALOME_Session_Server.cxx

index 3dd788625c06df711b14f04b842e11a1668a6c15..e8c0e7145b09d900c3ca7f62bf2858a24de624e8 100755 (executable)
@@ -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();