From: Nickolay V. Shmyrev Date: Sun, 28 Jan 2007 13:36:57 +0000 (+0000) Subject: Don't crash on links without title X-Git-Tag: EVINCE_0_7_2~61 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1fa2f70a8b8cf62e7324572942aa55a6f2bd039c;p=evince.git Don't crash on links without title svn path=/trunk/; revision=2260 --- diff --git a/shell/ev-navigation-action.c b/shell/ev-navigation-action.c index 88fe67b6..dc98ce75 100644 --- a/shell/ev-navigation-action.c +++ b/shell/ev-navigation-action.c @@ -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));