diff options
author | vdrfan <vdrfan-nospam@xbmc.org> | 2011-01-16 10:44:25 +0100 |
---|---|---|
committer | vdrfan <vdrfan-nospam@xbmc.org> | 2011-01-16 10:44:25 +0100 |
commit | 28d3c2934719df3ac7c23e2e6d167f2be0ca4908 (patch) | |
tree | 15ece482fe9813e0ee6d5940e51d3f530d3c8fef | |
parent | ce6dff4f3480834cc1134072e45e5deb0c8557c4 (diff) |
changed: #11033 - Change "Set Content" to "Edit Content Settings" after being set
-rw-r--r-- | xbmc/GUIWindowVideoFiles.cpp | 25 |
1 files changed, 20 insertions, 5 deletions
diff --git a/xbmc/GUIWindowVideoFiles.cpp b/xbmc/GUIWindowVideoFiles.cpp index 73e23da073..628e10ea36 100644 --- a/xbmc/GUIWindowVideoFiles.cpp +++ b/xbmc/GUIWindowVideoFiles.cpp @@ -397,14 +397,22 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu if (!item->IsDVD() && item->m_strPath != "add" && (g_settings.GetCurrentProfile().canWriteDatabases() || g_passwordManager.bMasterUser)) { - CGUIDialogVideoScan *pScanDlg = (CGUIDialogVideoScan *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_SCAN); - if (!pScanDlg || (pScanDlg && !pScanDlg->IsScanning())) - if (!item->IsLiveTV() && !item->IsPlugin() && !item->IsAddonsPath()) - buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20333); CVideoDatabase database; database.Open(); ADDON::ScraperPtr info = database.GetScraperForPath(item->m_strPath); + CGUIDialogVideoScan *pScanDlg = (CGUIDialogVideoScan *)g_windowManager.GetWindow(WINDOW_DIALOG_VIDEO_SCAN); + if (!pScanDlg || (pScanDlg && !pScanDlg->IsScanning())) + { + if (!item->IsLiveTV() && !item->IsPlugin() && !item->IsAddonsPath()) + { + if (info && info->Content() != CONTENT_NONE) + buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20442); + else + buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20333); + } + } + if (info && (!pScanDlg || (pScanDlg && !pScanDlg->IsScanning()))) buttons.Add(CONTEXT_BUTTON_SCAN, 13349); } @@ -435,8 +443,15 @@ void CGUIWindowVideoFiles::GetContextButtons(int itemNumber, CContextButtons &bu if (item->m_bIsFolder) { if (!pScanDlg || (pScanDlg && !pScanDlg->IsScanning())) + { if (!item->IsPlayList() && !item->IsLiveTV() && !item->IsPlugin() && !item->IsAddonsPath()) - buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20333); + { + if (info && info->Content() != CONTENT_NONE) + buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20442); + else + buttons.Add(CONTEXT_BUTTON_SET_CONTENT, 20333); + } + } if (!info) { // scraper not set - allow movie information or set content CStdString strPath(item->m_strPath); |