From 6b042b17b589d0326220fa9143618ff84756a887 Mon Sep 17 00:00:00 2001 From: Moritz Lipp Date: Thu, 8 Mar 2012 18:37:51 +0100 Subject: [PATCH] Show error message if no index exists --- shortcuts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcuts.c b/shortcuts.c index 57a6fca..eabf567 100644 --- a/shortcuts.c +++ b/shortcuts.c @@ -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; }