From: <sv...@op...> - 2024-12-28 15:40:59
|
Author: sagamusix Date: Sat Dec 28 16:40:46 2024 New Revision: 22630 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=22630 Log: [Fix] Config Dialog: Browsing for a template file used the wrong base path. Modified: trunk/OpenMPT/mptrack/GeneralConfigDlg.cpp Modified: trunk/OpenMPT/mptrack/GeneralConfigDlg.cpp ============================================================================== --- trunk/OpenMPT/mptrack/GeneralConfigDlg.cpp Fri Dec 27 14:31:54 2024 (r22629) +++ trunk/OpenMPT/mptrack/GeneralConfigDlg.cpp Sat Dec 28 16:40:46 2024 (r22630) @@ -207,7 +207,7 @@ void COptionsGeneral::OnBrowseTemplate() { - mpt::PathString basePath = theApp.GetInstallPath() + P_("TemplateModules\\"); + mpt::PathString basePath = theApp.GetConfigPath() + P_("TemplateModules\\"); mpt::PathString defaultFile = mpt::PathString::FromCString(GetWindowTextString(m_defaultTemplate)); if(defaultFile.empty()) defaultFile = TrackerSettings::Instance().defaultTemplateFile; |