Permalink
Browse files

remove unnecessary toast + parent folder of empty lists after filteri…

…ng - the '..' item is shown, so this won't be hit anyway
  • Loading branch information...
1 parent c906274 commit ede31b20a263295f1ab04b8ed715e37900530d7a Jonathan Marshall committed Dec 30, 2012
Showing with 0 additions and 13 deletions.
  1. +0 −13 xbmc/windows/GUIMediaWindow.cpp
@@ -934,22 +934,9 @@ bool CGUIMediaWindow::Refresh(bool clearCache /* = false */)
m_vecItems->RemoveDiscCache(GetID());
// get the original number of items
- int oldCount = m_filter.IsEmpty() ? m_vecItems->Size() : m_unfilteredItems->Size();
if (!Update(strCurrentDirectory, false))
return false;
- // check if we previously had at least 1 item
- // in the list and whether it now went down to 0
- // if there are no more items to show after the update
- // we go one level up in the hierachry to not show an
- // empty list
- if (oldCount > 0 &&
- (m_filter.IsEmpty() ? m_vecItems->Size() : m_unfilteredItems->Size()) <= 0)
- {
- CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Info, g_localizeStrings.Get(2080), g_localizeStrings.Get(2081));
- GoParentFolder();
- }
-
return true;
}

0 comments on commit ede31b2

Please sign in to comment.