]> spindle.queued.net Git - midori/commitdiff
Undo "Don't show empty speed dial shortcuts in-between"
authorChristian Dywan <christian@twotoasts.de>
Fri, 18 Nov 2011 20:21:50 +0000 (21:21 +0100)
committerChristian Dywan <christian@twotoasts.de>
Fri, 18 Nov 2011 20:21:50 +0000 (21:21 +0100)
This needs more work. The way it is, dial count is broken.

midori/midori-view.c

index 204e854f1a6b46e81784683a737be161234e5c5c..35c4af768b0c17bba1bfb8a2e4f7bc066639510f 100644 (file)
@@ -3741,7 +3741,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 && strstr (uri, "://") != NULL)
+        if (uri && *uri && *uri != '#')
         {
             gchar* title = g_key_file_get_string (key_file, dial_entry, "title", NULL);
             gchar* thumb_file = sokoke_build_thumbnail_path (uri);
@@ -3773,7 +3773,7 @@ prepare_speed_dial_html (MidoriView* view,
             g_free (title);
             g_free (encoded);
         }
-        else if (slot == slot_count)
+        else
         {
             g_string_append_printf (markup,
                 "<div class=\"shortcut\" id=\"s%d\"><div class=\"preview new\">"