only nag about a music rescan if there is music in the library
authorJonathan Marshall <jmarshall@never.you.mind>
Tue, 10 Jul 2012 20:05:46 +0000 (08:05 +1200)
committerJonathan Marshall <jmarshall@never.you.mind>
Tue, 10 Jul 2012 20:05:46 +0000 (08:05 +1200)
xbmc/music/windows/GUIWindowMusicBase.cpp

index d8a567e..1b0a5dd 100644 (file)
@@ -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))