From 744b17b90a915ebfd71ff16fa0f707c6898daa88 Mon Sep 17 00:00:00 2001 From: mbs Date: Mon, 15 Jan 2024 08:53:53 +0000 Subject: [PATCH] fixed creation of backup folder preference --- src/ModuleBase/ModuleBase_Preferences.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); -- 2.39.2