From 3af97996ca2c8f16705c23ff01485961269a6f4b Mon Sep 17 00:00:00 2001 From: and3md Date: Fri, 21 Jul 2017 13:43:09 +0200 Subject: [PATCH] showMessageBox() example fix. --- src/dlangui/dialogs/msgbox.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dlangui/dialogs/msgbox.d b/src/dlangui/dialogs/msgbox.d index 295266fe..985d54d0 100644 --- a/src/dlangui/dialogs/msgbox.d +++ b/src/dlangui/dialogs/msgbox.d @@ -13,7 +13,7 @@ import dlangui.dialogs.msgbox; window.showMessageBox(UIString("Dialog title"d), UIString("Some message"d)); // show message box with OK and CANCEL buttons, cancel by default, and handle its result -window.showMessageBox(UIString("Dialog title"d), UIString("Some message"d), [ACTION_OK, ACTION_CANCEL], 1, delegate(const Action a) { +window.showMessageBox(UIString("Dialog title"d), UIString("Some message"d), [ACTION_OK, ACTION_CANCEL], 1, delegate bool(const Action a) { if (a.id == StandardAction.Ok) Log.d("OK pressed"); else if (a.id == StandardAction.Cancel)