From 5c61e17c103f4f9fc391b2152fdf3dad0f44bd00 Mon Sep 17 00:00:00 2001 From: Geequlim Date: Fri, 29 Apr 2016 16:34:07 +0800 Subject: Add more documentations and fix AcceptDialog::add_cancel --- scene/gui/dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scene/gui/dialogs.cpp') diff --git a/scene/gui/dialogs.cpp b/scene/gui/dialogs.cpp index d00dacd256..51242d89bd 100644 --- a/scene/gui/dialogs.cpp +++ b/scene/gui/dialogs.cpp @@ -285,7 +285,7 @@ Button* AcceptDialog::add_cancel(const String &p_cancel) { String c = p_cancel; if (p_cancel=="") c="Cancel"; - Button *b = swap_ok_cancel ? add_button("Cancel",true) : add_button("Cancel"); + Button *b = swap_ok_cancel ? add_button(c,true) : add_button(c); b->connect("pressed",this,"_closed"); return b; } -- cgit v1.2.3