Check if filename to open is a filename or not
Fixes: https://bugs.launchpad.net/midori/+bug/715118
This commit is contained in:
parent
f4875ceb7c
commit
40a6743e78
1 changed files with 4 additions and 1 deletions
|
@ -401,7 +401,10 @@ sokoke_show_uri (GdkScreen* screen,
|
|||
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
|
||||
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT, NULL);
|
||||
box = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
|
||||
if (g_str_has_prefix (uri, "file:///"))
|
||||
filename = g_filename_from_uri (uri, NULL, NULL);
|
||||
else
|
||||
filename = g_strdup (uri);
|
||||
ms = g_strdup_printf (_("Choose an application or command to open \"%s\":"),
|
||||
filename);
|
||||
gtk_box_pack_start (GTK_BOX (box), gtk_label_new (ms), TRUE, FALSE, 4);
|
||||
|
|
Loading…
Reference in a new issue