diff options
author | Bl4ck09 <bl4ck09@me.com> | 2014-02-09 21:02:07 +0100 |
---|---|---|
committer | Bl4ck09 <bl4ck09@me.com> | 2014-02-09 21:02:07 +0100 |
commit | ee12fa38c34934376883ea37ad9c01807e5e1ba1 (patch) | |
tree | 5ce7556b5756419b54daf37c7102e005ed42affb | |
parent | 522b25bba6a1157c485a45b52981940e25f2925b (diff) |
Fixed: Update list if item was deleted from database but not from disk
-rw-r--r-- | xbmc/video/dialogs/GUIDialogVideoInfo.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp index 03f1aa638c..17b24201cc 100644 --- a/xbmc/video/dialogs/GUIDialogVideoInfo.cpp +++ b/xbmc/video/dialogs/GUIDialogVideoInfo.cpp @@ -1306,7 +1306,6 @@ bool CGUIDialogVideoInfo::DeleteVideoItem(const CFileItemPtr &item, bool unavail if (!DeleteVideoItemFromDatabase(item, unavailable)) return false; - bool result = true; // check if the user is allowed to delete the actual file as well if ((CProfilesManager::Get().GetCurrentProfile().getLockMode() == LOCK_MODE_EVERYONE || !CProfilesManager::Get().GetCurrentProfile().filesLocked() || @@ -1335,13 +1334,13 @@ bool CGUIDialogVideoInfo::DeleteVideoItem(const CFileItemPtr &item, bool unavail // HACK: stacked files need to be treated as folders in order to be deleted if (item->IsStack()) item->m_bIsFolder = true; - result = CFileUtils::DeleteItem(item); + CFileUtils::DeleteItem(item); } } CUtil::DeleteVideoDatabaseDirectoryCache(); - return result; + return true; } bool CGUIDialogVideoInfo::ManageMovieSets(const CFileItemPtr &item) |