Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

CGUIWindowVideoBase: always exectue the videothumbloader after filter…

…ing and grouping
  • Loading branch information...
commit 8c517ac2360d457bf752e964988ba098697a58b0 1 parent fc44e6f
@Montellese authored
View
10 xbmc/video/windows/GUIWindowVideoBase.cpp
@@ -1788,7 +1788,9 @@ bool CGUIWindowVideoBase::Update(const CStdString &strDirectory, bool updateFilt
if (!CGUIMediaWindow::Update(strDirectory, updateFilterPath))
return false;
- m_thumbLoader.Load(*m_unfilteredItems);
+ // might already be running from GetGroupedItems
+ if (!m_thumbLoader.IsLoading())
+ m_thumbLoader.Load(*m_vecItems);
return true;
}
@@ -1858,6 +1860,12 @@ void CGUIWindowVideoBase::GetGroupedItems(CFileItemList &items)
items.Append(groupedItems);
}
}
+
+ // reload thumbs after filtering and grouping
+ if (m_thumbLoader.IsLoading())
+ m_thumbLoader.StopThread();
+
+ m_thumbLoader.Load(items);
}
bool CGUIWindowVideoBase::CheckFilterAdvanced(CFileItemList &items) const
View
6 xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -540,12 +540,6 @@ bool CGUIWindowVideoNav::GetFilteredItems(const CStdString &filter, CFileItemLis
bool listchanged = CGUIMediaWindow::GetFilteredItems(filter, items);
listchanged |= ApplyWatchedFilter(items);
- // there are new items so we need to run the thumbloader
- if (m_thumbLoader.IsLoading())
- m_thumbLoader.StopThread();
-
- m_thumbLoader.Load(items);
-
return listchanged;
}
Please sign in to comment.
Something went wrong with that request. Please try again.