Permalink
Browse files

Fix for annoying non-backup with empty dir message

  • Loading branch information...
elan committed Mar 3, 2009
1 parent 28cfd20 commit fcd68fd3e9092b3392c29136f00f9eddbe64c7de
Showing with 4 additions and 1 deletion.
  1. +4 −1 xbmc/GUIMediaWindow.cpp
View
@@ -558,8 +558,11 @@ bool CGUIMediaWindow::Update(const CStdString &strDirectory)
// Get the new directory.
CFileItemList newItems;
- if (!GetDirectory(strDirectory, newItems))
+ if (!GetDirectory(strDirectory, newItems) || (newItems.m_displayMessage && newItems.Size() == 0))
{
+ if (newItems.m_displayMessage)
+ CGUIDialogOK::ShowAndGetInput(newItems.m_displayMessageTitle, newItems.m_displayMessageContents, "", "");
+
if (newItems.m_wasListingCancelled == true)
{
// Fast path.

0 comments on commit fcd68fd

Please sign in to comment.