From ce02262f2a7e9ee5ab07ca84bcf2a3ffba81bb94 Mon Sep 17 00:00:00 2001 From: Anssi Hannula Date: Sun, 10 Oct 2010 20:27:41 +0300 Subject: [PATCH 5/7] added: show a notification for a failed unknown addon installation In ReportInstallError(), show a notification to the user even if we couldn't get the addon name and icon. In this case, simply show the addon filename. This can happen if e.g. user tries to install non-addon zip file as addon. --- xbmc/GUIWindowAddonBrowser.cpp | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xbmc/GUIWindowAddonBrowser.cpp b/xbmc/GUIWindowAddonBrowser.cpp index 66f965a..4d84e17 100644 --- a/xbmc/GUIWindowAddonBrowser.cpp +++ b/xbmc/GUIWindowAddonBrowser.cpp @@ -268,6 +268,14 @@ void CGUIWindowAddonBrowser::ReportInstallError(const CStdString& addonID, g_localizeStrings.Get(addon2 ? 113 : 114), TOAST_DISPLAY_TIME, false); } + else + { + g_application.m_guiDialogKaiToast.QueueNotification( + CGUIDialogKaiToast::Error, + fileName, + g_localizeStrings.Get(114), + TOAST_DISPLAY_TIME, false); + } } void CGUIWindowAddonBrowser::ReportInstallErrorZip(const CStdString& zipName) -- 1.7.3