[geany/geany] 9a471d: Merge pull request #1079 from eht16/win32_open_uri_error_handling2

Enrico Tröger git-noreply at xxxxx
Mon Jun 20 21:06:39 UTC 2016


Branch:      refs/heads/master
Author:      Enrico Tröger <enrico.troeger at uvena.de>
Committer:   GitHub <noreply at github.com>
Date:        Mon, 20 Jun 2016 21:06:39 UTC
Commit:      9a471d336dc74699bcf78561a3d47f80f2e2b874
             https://github.com/geany/geany/commit/9a471d336dc74699bcf78561a3d47f80f2e2b874

Log Message:
-----------
Merge pull request #1079 from eht16/win32_open_uri_error_handling2

Win32: Add UI error message if an URL could not be opened


Modified Paths:
--------------
    src/win32.c

Modified: src/win32.c
2 lines changed, 1 insertions(+), 1 deletions(-)
===================================================================
@@ -799,7 +799,7 @@ void win32_open_browser(const gchar *uri)
 	if (ret <= 32)
 	{
 		gchar *err = g_win32_error_message(GetLastError());
-		/* TODO add a GUI warning that opening an URI failed */
+		ui_set_statusbar(TRUE, _("Failed to open URI \"%s\": %s"), uri, err);
 		g_warning("ShellExecute failed opening \"%s\" (code %d): %s", uri, ret, err);
 		g_free(err);
 	}



--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).


More information about the Commits mailing list