[videodb] show select dialog for linking a movie to a show, even if there's only...
authorJonathan Marshall <jmarshall@xbmc.org>
Mon, 31 Mar 2014 04:32:16 +0000 (17:32 +1300)
committerJonathan Marshall <jmarshall@xbmc.org>
Mon, 31 Mar 2014 04:56:05 +0000 (17:56 +1300)
xbmc/video/dialogs/GUIDialogVideoInfo.cpp

index fa1a7e2..3da6886 100644 (file)
@@ -1918,7 +1918,7 @@ bool CGUIDialogVideoInfo::LinkMovieToTvShow(const CFileItemPtr &item, bool bRemo
   }
 
   int iSelectedLabel = 0;
-  if (list.Size() > 1)
+  if (list.Size() > 1 || (!bRemove && !list.IsEmpty()))
   {
     list.Sort(SortByLabel, SortOrderAscending, CSettings::Get().GetBool("filelists.ignorethewhensorting") ? SortAttributeIgnoreArticle : SortAttributeNone);
     CGUIDialogSelect* pDialog = (CGUIDialogSelect*)g_windowManager.GetWindow(WINDOW_DIALOG_SELECT);