diff options
author | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-11-12 09:00:56 +0100 |
---|---|---|
committer | vdrfan <vdrfan-nospam-@xbmc.org> | 2011-11-12 09:00:56 +0100 |
commit | a2f830eb45dcbcbae8906251b550aa9a24e6137b (patch) | |
tree | 8e6e6535e844071be672d6abc3e45991244cb077 | |
parent | db4d0fa7384e50cf27b14b22e5496ee7e6f703bc (diff) |
fixed: unable to edit/remove an assigned subtitle folder after the previously added video source path has changed (fixes #12204)
-rw-r--r-- | xbmc/settings/GUIWindowSettingsCategory.cpp | 11 |
1 files 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); |