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:
parent
03f8c415ab
commit
96b2395daa
1 changed files with 3 additions and 0 deletions
|
@ -285,6 +285,9 @@ on_new(GtkWidget *widget, GtkWindow *window)
|
||||||
if (name != NULL) {
|
if (name != NULL) {
|
||||||
if (data_add_manga(name, total_qty))
|
if (data_add_manga(name, total_qty))
|
||||||
eom_main_window_load(EOM_MAIN_WINDOW(window));
|
eom_main_window_load(EOM_MAIN_WINDOW(window));
|
||||||
|
else
|
||||||
|
hildon_banner_show_information(window, NULL,
|
||||||
|
"Could not add manga");
|
||||||
}
|
}
|
||||||
|
|
||||||
gtk_widget_destroy(dialog);
|
gtk_widget_destroy(dialog);
|
||||||
|
|
Loading…
Reference in a new issue