mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 11:46:01 +01:00
Resolve sc_follow issue
This commit is contained in:
parent
3facd5beb0
commit
392275eed3
1 changed files with 2 additions and 2 deletions
|
@ -120,7 +120,7 @@ sc_follow(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
||||||
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;
|
||||||
|
|
||||||
if (zathura->document == NULL) {
|
if (zathura->document == NULL || zathura->ui.session == NULL) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -151,7 +151,7 @@ sc_follow(girara_session_t* session, girara_argument_t* UNUSED(argument),
|
||||||
|
|
||||||
/* ask for input */
|
/* ask for input */
|
||||||
if (show_links == true) {
|
if (show_links == true) {
|
||||||
girara_dialog(zathura->ui.session, "Follow link:", FALSE, NULL, (girara_callback_inputbar_activate_t) cb_sc_follow, NULL);
|
girara_dialog(zathura->ui.session, "Follow link:", FALSE, NULL, (girara_callback_inputbar_activate_t) cb_sc_follow, zathura->ui.session);
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue