diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-07-29 22:31:07 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-07-29 22:31:07 +0000 |
commit | 985c85f8ea9580b3af08ba47ce03efff4c9bcdac (patch) | |
tree | 322a5ebbcbd8b166a1c4d3c7290a27e4e0551e67 | |
parent | 47794f45d019416cc3400b29dccb4ec7a2a4dd9c (diff) |
fixed: Ticket #9774 - Ignore articles when sorting search results not working.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32317 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r-- | xbmc/GUIWindowVideoBase.cpp | 2 | ||||
-rw-r--r-- | xbmc/GUIWindowVideoInfo.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/xbmc/GUIWindowVideoBase.cpp b/xbmc/GUIWindowVideoBase.cpp index ee4c4a2ba4..4b765175b4 100644 --- a/xbmc/GUIWindowVideoBase.cpp +++ b/xbmc/GUIWindowVideoBase.cpp @@ -1809,7 +1809,7 @@ void CGUIWindowVideoBase::OnSearch() CGUIDialogSelect* pDlgSelect = (CGUIDialogSelect*)g_windowManager.GetWindow(WINDOW_DIALOG_SELECT); pDlgSelect->Reset(); pDlgSelect->SetHeading(283); - items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC); + items.Sort(g_guiSettings.GetBool("filelists.ignorethewhensorting") ? SORT_METHOD_LABEL_IGNORE_THE : SORT_METHOD_LABEL, SORT_ORDER_ASC); for (int i = 0; i < (int)items.Size(); i++) { diff --git a/xbmc/GUIWindowVideoInfo.cpp b/xbmc/GUIWindowVideoInfo.cpp index 467dc711cd..e378eb00b3 100644 --- a/xbmc/GUIWindowVideoInfo.cpp +++ b/xbmc/GUIWindowVideoInfo.cpp @@ -457,7 +457,7 @@ void CGUIWindowVideoInfo::OnSearch(CStdString& strSearch) CGUIDialogSelect* pDlgSelect = (CGUIDialogSelect*)g_windowManager.GetWindow(WINDOW_DIALOG_SELECT); pDlgSelect->Reset(); pDlgSelect->SetHeading(283); - items.Sort(SORT_METHOD_LABEL, SORT_ORDER_ASC); + items.Sort(g_guiSettings.GetBool("filelists.ignorethewhensorting") ? SORT_METHOD_LABEL_IGNORE_THE : SORT_METHOD_LABEL, SORT_ORDER_ASC); for (int i = 0; i < (int)items.Size(); i++) { |