Skip to content

Commit

Permalink
First check if allowfiledeletion is true before prompting for master …
Browse files Browse the repository at this point in the history
…password.
  • Loading branch information
Menno committed Feb 28, 2015
1 parent 028f159 commit 21ffbc4
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 21ffbc4

Please sign in to comment.