From a2f830eb45dcbcbae8906251b550aa9a24e6137b Mon Sep 17 00:00:00 2001 From: vdrfan Date: Sat, 12 Nov 2011 09:00:56 +0100 Subject: fixed: unable to edit/remove an assigned subtitle folder after the previously added video source path has changed (fixes #12204) --- xbmc/settings/GUIWindowSettingsCategory.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/xbmc/settings/GUIWindowSettingsCategory.cpp b/xbmc/settings/GUIWindowSettingsCategory.cpp index 18f7f9b94d..0054d6dd09 100644 --- a/xbmc/settings/GUIWindowSettingsCategory.cpp +++ b/xbmc/settings/GUIWindowSettingsCategory.cpp @@ -1562,18 +1562,19 @@ void CGUIWindowSettingsCategory::OnSettingChanged(CBaseSettingControl *pSettingC CStdString path = g_guiSettings.GetString(strSetting,false); VECSOURCES shares; - g_mediaManager.GetNetworkLocations(shares); - g_mediaManager.GetLocalDrives(shares); - - UpdateSettings(); bool bWriteOnly = true; if (strSetting.Equals("subtitles.custompath")) { bWriteOnly = false; shares = g_settings.m_videoSources; - g_mediaManager.GetLocalDrives(shares); } + + g_mediaManager.GetNetworkLocations(shares); + g_mediaManager.GetLocalDrives(shares); + + UpdateSettings(); + if (CGUIDialogFileBrowser::ShowAndGetDirectory(shares, g_localizeStrings.Get(pSettingString->m_iHeadingString), path, bWriteOnly)) { pSettingString->SetData(path); -- cgit v1.2.3