Fix segmentation fault in nav_index

This commit is contained in:
Moritz Lipp 2010-07-13 08:36:16 +02:00
parent 5d7c3b0c9b
commit 047c6976d4

View File

@ -2100,6 +2100,9 @@ gboolean cb_index_row_activated(GtkTreeView* treeview, GtkTreePath* path,
void void
sc_navigate_index(Argument* argument) sc_navigate_index(Argument* argument)
{ {
if(!Zathura.UI.index)
return;
GtkTreeView *treeview = gtk_container_get_children(GTK_CONTAINER(Zathura.UI.index))->data; GtkTreeView *treeview = gtk_container_get_children(GTK_CONTAINER(Zathura.UI.index))->data;
GtkTreePath *path; GtkTreePath *path;