From 96b2395daa2b9b9a20052b53e94d285c82b480ce Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sat, 14 Sep 2013 13:18:20 +0200 Subject: [PATCH] Show alert when adding a manga fails In the future this should be expanded to include why adding it failed. --- src/eom-main-window.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/eom-main-window.c b/src/eom-main-window.c index fb352b7..93439c1 100644 --- a/src/eom-main-window.c +++ b/src/eom-main-window.c @@ -285,6 +285,9 @@ on_new(GtkWidget *widget, GtkWindow *window) if (name != NULL) { if (data_add_manga(name, total_qty)) eom_main_window_load(EOM_MAIN_WINDOW(window)); + else + hildon_banner_show_information(window, NULL, + "Could not add manga"); } gtk_widget_destroy(dialog);