Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
4239d965
Commit
4239d965
authored
Oct 03, 2011
by
Sebastian Ramacher
Browse files
just do nothing if no document is open
parent
8abe3d96
Changes
1
Hide whitespace changes
Inline
Side-by-side
shortcuts.c
View file @
4239d965
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment