Show message when no bookmarks found

Issue #194
This commit is contained in:
James Booth
2014-04-13 02:57:11 +01:00
parent 71180f66d7
commit 99592e2779

View File

@@ -644,6 +644,10 @@ _cons_show_bookmarks(const GList *list)
ProfWin *console = wins_get_console(); ProfWin *console = wins_get_console();
Bookmark *item; Bookmark *item;
if (list == NULL) {
cons_show("");
cons_show("No bookmarks found.");
} else {
cons_show(""); cons_show("");
cons_show("Bookmarks:"); cons_show("Bookmarks:");
@@ -666,6 +670,7 @@ _cons_show_bookmarks(const GList *list)
if (wins_is_current(console)) { if (wins_is_current(console)) {
win_update_virtual(console); win_update_virtual(console);
} }
}
cons_alert(); cons_alert();
} }