From: Olaf Wintermann Date: Mon, 28 Apr 2025 19:22:33 +0000 (+0200) Subject: add error handling to attachment_save_result X-Git-Url: https://uap-core.de/gitweb/?a=commitdiff_plain;h=fc3f12fd20e53442fe3d1a822bd253858076cdb9;p=note.git add error handling to attachment_save_result --- diff --git a/application/attachment.c b/application/attachment.c index 2827c22..2fb2725 100644 --- a/application/attachment.c +++ b/application/attachment.c @@ -102,7 +102,7 @@ static void attachment_save_result(UiEvent *event, int error, void *userdata) { attachment->saved = TRUE; attachment->content_saved = TRUE; } else { - // TODO: error dialog? + ui_dialog(event->obj, .title = "Error", .content = "Cannot save attachment", .closebutton_label = "Close"); } }