summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorGeequlim <geequlim@gmail.com>2016-04-29 16:34:07 +0800
committerGeequlim <geequlim@gmail.com>2016-04-29 16:34:07 +0800
commit5c61e17c103f4f9fc391b2152fdf3dad0f44bd00 (patch)
tree8586b8919d6ca97f050d3a9fc494e0f8a1e9bec1 /scene
parent4de3f8944e88b3dbfe6c07379c1e360a6e623669 (diff)
Add more documentations and fix AcceptDialog::add_cancel
Diffstat (limited to 'scene')
-rw-r--r--scene/gui/dialogs.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}