Show error message if no index exists

This commit is contained in:
Moritz Lipp 2012-03-08 18:37:51 +01:00
parent eadc85d316
commit 6b042b17b5

View file

@ -684,7 +684,7 @@ sc_toggle_index(girara_session_t* session, girara_argument_t* UNUSED(argument),
/* create index */
document_index = zathura_document_index_generate(zathura->document, NULL);
if (document_index == NULL) {
// TODO: Error message
girara_notify(session, GIRARA_WARNING, _("This document does not contain any index"));
goto error_free;
}