From d9e5b3a1eb025999c08039741e9cf9d37182980e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thore=20B=C3=B6ckelmann?= Date: Wed, 9 Nov 2016 08:24:54 +0100 Subject: [PATCH] * mui/UpdateComponentList.c: disable the "download in browser" context menu item if openurl.library is not available to be consistent with the "download in browser" button. This refs #632. --- src/YAM_UT.c | 2 +- src/mui/UpdateComponentList.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/YAM_UT.c b/src/YAM_UT.c index 77c51ae66..61c3545ab 100644 --- a/src/YAM_UT.c +++ b/src/YAM_UT.c @@ -5755,7 +5755,7 @@ BOOL GotoURL(const char *url, const BOOL newWindow) // let the user decide himself if he wants to see // it popping up in a new window or not (via OpenURL // prefs) - D(DBF_UTIL, "trying openurl.library to open URL '%s'", url); + D(DBF_UTIL, "trying openurl.library to open URL '%s'", url); wentToURL = URL_Open((STRPTR)url, URL_NewWindow, newWindow, TAG_DONE); } diff --git a/src/mui/UpdateComponentList.c b/src/mui/UpdateComponentList.c index dc1f1e067..64d47b21e 100644 --- a/src/mui/UpdateComponentList.c +++ b/src/mui/UpdateComponentList.c @@ -194,7 +194,7 @@ OVERLOAD(MUIM_ContextMenuBuild) data->contextMenu = MenustripObject, Child, MenuObjectT(data->menuTitle), Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD, End, - Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD_WITH_BROWSER), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD_WITH_BROWSER, End, + Child, MenuitemObject, MUIA_Menuitem_Title, tr(MSG_UPD_NOTIFICATION_DOWNLOAD_WITH_BROWSER), MUIA_Menuitem_CopyStrings, FALSE, MUIA_UserData, UMEN_DOWNLOAD_WITH_BROWSER, MUIA_Menuitem_Enabled, GotoURLPossible(), End, End, End; }