]> www.fi.muni.cz Git - evince.git/commitdiff
Don't crash on links without title
authorNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 28 Jan 2007 13:36:57 +0000 (13:36 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Sun, 28 Jan 2007 13:36:57 +0000 (13:36 +0000)
svn path=/trunk/; revision=2260

shell/ev-navigation-action.c

index 88fe67b6de01bbadca11021d4876aa0568fa9fe5..dc98ce759cdb009e259fab1a0e16b952321657e4 100644 (file)
@@ -93,6 +93,10 @@ new_history_menu_item (EvNavigationAction *action,
        const char *title;
 
        title = ev_link_get_title (link);
+       
+       if (!title)
+               title = _("External link");
+
        item = gtk_image_menu_item_new_with_label (title);
        g_object_set_data (G_OBJECT (item), "index",
                           GINT_TO_POINTER (index));