aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--language/English/strings.po2
-rw-r--r--xbmc/video/windows/GUIWindowVideoNav.cpp20
2 files changed, 16 insertions, 6 deletions
diff --git a/language/English/strings.po b/language/English/strings.po
index 9acbf50b56..9c0be78c7f 100644
--- a/language/English/strings.po
+++ b/language/English/strings.po
@@ -1090,6 +1090,7 @@ msgid "Fetching CD information"
msgstr ""
#: xbmc/dialogs/GUIDialogFileBrowser.cpp
+#: xbmc/video/windows/GUIWindowVideoNav.cpp
msgctxt "#257"
msgid "Error"
msgstr ""
@@ -2806,6 +2807,7 @@ msgctxt "#661"
msgid "Choose export folder"
msgstr ""
+#: xbmc/video/windows/GUIWindowVideoNav.cpp
msgctxt "#662"
msgid "This file is no longer available."
msgstr ""
diff --git a/xbmc/video/windows/GUIWindowVideoNav.cpp b/xbmc/video/windows/GUIWindowVideoNav.cpp
index 8d4128703f..f6d7dfccc2 100644
--- a/xbmc/video/windows/GUIWindowVideoNav.cpp
+++ b/xbmc/video/windows/GUIWindowVideoNav.cpp
@@ -1046,13 +1046,21 @@ bool CGUIWindowVideoNav::OnClick(int iItem)
if (!item->m_bIsFolder && item->IsVideoDb() && !item->Exists())
{
CLog::Log(LOGDEBUG, "%s called on '%s' but file doesn't exist", __FUNCTION__, item->GetPath().c_str());
- if (!CGUIDialogVideoInfo::DeleteVideoItemFromDatabase(item, true))
- return true;
+ if (CProfilesManager::Get().GetCurrentProfile().canWriteDatabases())
+ {
+ if (!CGUIDialogVideoInfo::DeleteVideoItemFromDatabase(item, true))
+ return true;
- // update list
- Refresh(true);
- m_viewControl.SetSelectedItem(iItem);
- return true;
+ // update list
+ Refresh(true);
+ m_viewControl.SetSelectedItem(iItem);
+ return true;
+ }
+ else
+ {
+ CGUIDialogOK::ShowAndGetInput(257, 0, 662, 0);
+ return true;
+ }
}
else if (StringUtils::StartsWithNoCase(item->GetPath(), "newtag://"))
{