aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-09-14 13:18:20 +0200
committerGravatar Tom Willemse2013-09-14 13:18:20 +0200
commit96b2395daa2b9b9a20052b53e94d285c82b480ce (patch)
treebf0c1c90e6b615d1e3260c8005c4cf27f2ea9ad3
parent03f8c415ab676732566773004524e2f5f01b7a4f (diff)
downloadeye-on-manga-96b2395daa2b9b9a20052b53e94d285c82b480ce.tar.gz
eye-on-manga-96b2395daa2b9b9a20052b53e94d285c82b480ce.zip
Show alert when adding a manga fails
In the future this should be expanded to include why adding it failed.
-rw-r--r--src/eom-main-window.c3
1 files changed, 3 insertions, 0 deletions
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);