From: mbs Date: Mon, 15 Jan 2024 08:53:53 +0000 (+0000) Subject: fixed creation of backup folder preference X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=744b17b90a915ebfd71ff16fa0f707c6898daa88;p=modules%2Fshaper.git fixed creation of backup folder preference --- diff --git a/src/ModuleBase/ModuleBase_Preferences.cpp b/src/ModuleBase/ModuleBase_Preferences.cpp index 38aaf1fc6..b41d6a219 100644 --- a/src/ModuleBase/ModuleBase_Preferences.cpp +++ b/src/ModuleBase/ModuleBase_Preferences.cpp @@ -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();