Fix opening of local files in the browser on Windows.
git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@4098 ea778897-0a13-0410-b9d1-a72fbfd435f5
This commit is contained in:
parent
eb7b78387f
commit
bd0f98f3f5
@ -4,6 +4,8 @@
|
||||
Add a translation hint to an ambiguous format string.
|
||||
* src/Makefile.am:
|
||||
Add missing include path to fix 'make distcheck'.
|
||||
* src/win32.c:
|
||||
Fix opening of local files in the browser on Windows.
|
||||
* New release: Geany 0.18 "Kaine".
|
||||
|
||||
|
||||
|
@ -644,8 +644,11 @@ gint win32_message_dialog_unsaved(const gchar *msg)
|
||||
void win32_open_browser(const gchar *uri)
|
||||
{
|
||||
if (strncmp(uri, "file://", 7) == 0)
|
||||
{
|
||||
uri += 7;
|
||||
|
||||
while (*uri == '/')
|
||||
uri++;
|
||||
}
|
||||
ShellExecute(NULL, "open", uri, NULL, NULL, SW_SHOWNORMAL);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user