Skip to content

Commit

Permalink
Merge pull request xbmc#6556 from delftswa2014/issue-15781
Browse files Browse the repository at this point in the history
[video] First check for allowfiledeletion first
  • Loading branch information
mkortstiege committed Mar 1, 2015
2 parents 058e715 + 21ffbc4 commit cc463a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xbmc/video/dialogs/GUIDialogVideoInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1240,10 +1240,10 @@ bool CGUIDialogVideoInfo::DeleteVideoItem(const CFileItemPtr &item, bool unavail
return false;

// check if the user is allowed to delete the actual file as well
if ((CProfilesManager::Get().GetCurrentProfile().getLockMode() == LOCK_MODE_EVERYONE ||
if (CSettings::Get().GetBool("filelists.allowfiledeletion") &&
(CProfilesManager::Get().GetCurrentProfile().getLockMode() == LOCK_MODE_EVERYONE ||
!CProfilesManager::Get().GetCurrentProfile().filesLocked() ||
g_passwordManager.IsMasterLockUnlocked(true)) &&
CSettings::Get().GetBool("filelists.allowfiledeletion"))
g_passwordManager.IsMasterLockUnlocked(true)))
{
std::string strDeletePath = item->GetVideoInfoTag()->GetPath();

Expand Down

0 comments on commit cc463a2

Please sign in to comment.