Show alert when adding a manga fails

In the future this should be expanded to include why adding it failed.
This commit is contained in:
Tom Willemse 2013-09-14 13:18:20 +02:00
parent 03f8c415ab
commit 96b2395daa

View file

@ -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);