mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2025-01-01 03:36:01 +01:00
just do nothing if no document is open
This commit is contained in:
parent
8abe3d96d5
commit
4239d9652f
1 changed files with 3 additions and 1 deletions
|
@ -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 != NULL, false);
|
||||||
g_return_val_if_fail(session->global.data != NULL, false);
|
g_return_val_if_fail(session->global.data != NULL, false);
|
||||||
zathura_t* zathura = session->global.data;
|
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;
|
girara_tree_node_t* document_index = NULL;
|
||||||
GtkWidget* treeview = NULL;
|
GtkWidget* treeview = NULL;
|
||||||
|
|
Loading…
Reference in a new issue