Permalink
Browse files

only nag about a music rescan if there is music in the library

  • Loading branch information...
1 parent 55e2317 commit e7240d7c80636135419338034ad60224ed453bde Jonathan Marshall committed Jul 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/music/windows/GUIWindowMusicBase.cpp
View
3 xbmc/music/windows/GUIWindowMusicBase.cpp
@@ -1348,7 +1348,8 @@ void CGUIWindowMusicBase::OnPrepareFileItems(CFileItemList &items)
void CGUIWindowMusicBase::OnInitWindow()
{
CGUIMediaWindow::OnInitWindow();
- if (g_settings.m_musicNeedsUpdate == 27 && !g_application.IsMusicScanning())
+ if (g_settings.m_musicNeedsUpdate == 27 && !g_application.IsMusicScanning() &&
+ g_infoManager.GetLibraryBool(LIBRARY_HAS_MUSIC))
{
// rescan of music library required
if (CGUIDialogYesNo::ShowAndGetInput(799, 800, 801, -1))

0 comments on commit e7240d7

Please sign in to comment.