]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
fixed creation of backup folder preference
authormbs <martin.bernhard@opencascade.com>
Mon, 15 Jan 2024 08:53:53 +0000 (08:53 +0000)
committermbs <martin.bernhard@opencascade.com>
Fri, 19 Jan 2024 23:11:08 +0000 (23:11 +0000)
src/ModuleBase/ModuleBase_Preferences.cpp

index 38aaf1fc6d14ef7c80ce5ad0378e2ffda989f9ca..b41d6a219fce8c5785a4c4230e2736fa6e168800 100644 (file)
@@ -235,7 +235,8 @@ void ModuleBase_Preferences::createGeneralTab(ModuleBase_IPrefMgr* thePref, int
   thePref->setItemProperty( "max", 1440, delay );
   thePref->setItemProperty( "suffix", " min", delay );
 
-  int folderPref = thePref->addPreference(QObject::tr("Backup Folder"), group, SUIT_PreferenceMgr::File, "backup_folder", QString()/*platform*/);
+  int folderPref = thePref->addPreference(QObject::tr("Backup Folder"), group, SUIT_PreferenceMgr::File,
+                                          ModuleBase_Preferences::GENERAL_SECTION, "backup_folder");
   thePref->setItemProperty( "mode", Qtx::PT_Directory, folderPref );
 
   visuItemList.clear();