mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 22:13:48 +01:00
just do nothing if no document is open
This commit is contained in:
parent
8abe3d96d5
commit
4239d9652f
@ -307,7 +307,9 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
||||
g_return_val_if_fail(session != NULL, false);
|
||||
g_return_val_if_fail(session->global.data != NULL, false);
|
||||
zathura_t* zathura = session->global.data;
|
||||
g_return_val_if_fail(zathura->document != NULL, false);
|
||||
if (zathura->document == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
girara_tree_node_t* document_index = NULL;
|
||||
GtkWidget* treeview = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user