aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Sommerfeld <kai.sommerfeld@gmx.com>2018-07-27 23:28:37 +0200
committerKai Sommerfeld <kai.sommerfeld@gmx.com>2018-07-27 23:28:37 +0200
commit6b7929003c22228ceb7fd1ce0d8516ac63290da3 (patch)
tree6bc1f7e1390d8560c0c278333809b13d78ac4dc8
parentf8f5aa57a773a01cb7828f3401da8b635e251808 (diff)
[PVR] Guide window: Only sort events item list when actually necessary.
-rw-r--r--xbmc/pvr/windows/GUIWindowPVRGuide.cpp10
-rw-r--r--xbmc/pvr/windows/GUIWindowPVRGuide.h1
2 files changed, 11 insertions, 0 deletions
diff --git a/xbmc/pvr/windows/GUIWindowPVRGuide.cpp b/xbmc/pvr/windows/GUIWindowPVRGuide.cpp
index f022c7fc6b..797eb5fbd5 100644
--- a/xbmc/pvr/windows/GUIWindowPVRGuide.cpp
+++ b/xbmc/pvr/windows/GUIWindowPVRGuide.cpp
@@ -239,6 +239,16 @@ bool CGUIWindowPVRGuideBase::GetDirectory(const std::string &strDirectory, CFile
return true;
}
+void CGUIWindowPVRGuideBase::FormatAndSort(CFileItemList &items)
+{
+ if (&items == m_vecItems)
+ {
+ // Speedup: Nothing to do here as sorting was already done in CGUIWindowPVRGuideBase::RefreshTimelineItems
+ return;
+ }
+ CGUIWindowPVRBase::FormatAndSort(items);
+}
+
bool CGUIWindowPVRGuideBase::ShouldNavigateToGridContainer(int iAction)
{
CGUIEPGGridContainer *epgGridContainer = GetGridControl();
diff --git a/xbmc/pvr/windows/GUIWindowPVRGuide.h b/xbmc/pvr/windows/GUIWindowPVRGuide.h
index 8f86c624bf..30583f30cb 100644
--- a/xbmc/pvr/windows/GUIWindowPVRGuide.h
+++ b/xbmc/pvr/windows/GUIWindowPVRGuide.h
@@ -49,6 +49,7 @@ namespace PVR
void UpdateSelectedItemPath() override;
std::string GetDirectoryPath(void) override { return ""; }
bool GetDirectory(const std::string &strDirectory, CFileItemList &items) override;
+ void FormatAndSort(CFileItemList &items) override;
void ClearData() override;