diff options
author | DaveTBlake <oak99sky@yahoo.co.uk> | 2016-01-10 11:25:05 +0000 |
---|---|---|
committer | DaveTBlake <oak99sky@yahoo.co.uk> | 2016-01-10 11:25:05 +0000 |
commit | 6a183911e6cec679cc677f3f6f00077b3737990e (patch) | |
tree | 9f701d20a8bb68ff63b0abb573b2942a120811c5 | |
parent | 77d035a2188d26cbb5b303d7da52fea5aeb4545d (diff) |
Prevent "Scan to library" appearing on context menu for "Add music" item of music file view
-rw-r--r-- | xbmc/music/windows/GUIWindowMusicNav.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xbmc/music/windows/GUIWindowMusicNav.cpp b/xbmc/music/windows/GUIWindowMusicNav.cpp index 64a7743fd2..a6951d23bf 100644 --- a/xbmc/music/windows/GUIWindowMusicNav.cpp +++ b/xbmc/music/windows/GUIWindowMusicNav.cpp @@ -470,8 +470,11 @@ void CGUIWindowMusicNav::GetContextButtons(int itemNumber, CContextButtons &butt // Add the scan button(s) if (g_application.IsMusicScanning()) buttons.Add(CONTEXT_BUTTON_STOP_SCANNING, 13353); // Stop Scanning - else if (CProfilesManager::GetInstance().GetCurrentProfile().canWriteDatabases() || - g_passwordManager.bMasterUser) + else if (!inPlaylists && !m_vecItems->IsInternetStream() && + !item->IsPath("add") && !item->IsParentFolder() && + !item->IsPlugin() && + !StringUtils::StartsWithNoCase(item->GetPath(), "addons://") && + (CProfilesManager::GetInstance().GetCurrentProfile().canWriteDatabases() || g_passwordManager.bMasterUser)) { buttons.Add(CONTEXT_BUTTON_SCAN, 13352); } |