]> SALOME platform Git repositories - modules/gui.git/blobdiff - src/SUITApp/SUITApp.cxx
Salome HOME
updated copyright message
[modules/gui.git] / src / SUITApp / SUITApp.cxx
index cba1a49ca87eb5220efab73469c9703c30522ce9..316fa764f88cfedcc9c4c0785b11f27c1e716abc 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2020  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -102,7 +102,7 @@ namespace
     }
 
   protected:
-    QString userFileName( const QString& appName, const bool forLoad ) const
+    QString userFileName( const QString& /*appName*/, const bool forLoad ) const
     {
       if ( version().isEmpty() ) return ""; 
       return SUIT_ResourceMgr::userFileName( myCustomAppName, forLoad );
@@ -271,6 +271,15 @@ int main( int argc, char* argv[] )
     QLocale::setDefault( QLocale::c() );
   resMgr.setWorkingMode( ResourceMgr::IgnoreUserValues );
 
+#if defined(GLOBAL_DOUBLE_CONVERSION)
+  // VSR 30/03/2021: moved here from QtxDoubleSpinBox/QtxIntSpinBox because of crash on Qt 5.12.
+  // Disable thousands separator for spin box
+  // see issue 14540 (old id 21219)
+  QLocale locale;
+  locale.setNumberOptions(locale.numberOptions() | QLocale::OmitGroupSeparator | QLocale::RejectGroupSeparator);
+  QLocale::setDefault(locale);
+#endif
+
   if ( !debugExceptions )
     debugExceptions = resMgr.booleanValue( "launch", "noexcepthandler", false );
   if ( !noSplash )