From 8ecfdd701ed57ad51d6e6df8e93cba570f04601d Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 15 Nov 2011 21:13:49 +0100 Subject: [PATCH] Don't show empty speed dial shortcuts in-between It is confusing a lot of users. --- midori/midori-view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index a63aba17..44ed73c2 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3739,7 +3739,7 @@ prepare_speed_dial_html (MidoriView* view, gchar* dial_entry = g_strdup_printf ("Dial %d", slot); gchar* uri = g_key_file_get_string (key_file, dial_entry, "uri", NULL); - if (uri && *uri && *uri != '#') + if (uri && strstr (uri, "://") != NULL) { gchar* title = g_key_file_get_string (key_file, dial_entry, "title", NULL); gchar* thumb_file = sokoke_build_thumbnail_path (uri); @@ -3764,14 +3764,14 @@ prepare_speed_dial_html (MidoriView* view, g_string_append_printf (markup, "
" "" - "" + "" "
%s
\n", - slot, slot, uri, encoded, slot, title ? title : ""); + slot, slot, uri, prefix, encoded, slot, title ? title : ""); g_free (title); g_free (encoded); } - else + else if (slot == slot_count) { g_string_append_printf (markup, "
" -- 2.39.5