Add more documentations and fix AcceptDialog::add_cancel

This commit is contained in:
Geequlim
2016-04-29 16:34:07 +08:00
parent 4de3f8944e
commit 5c61e17c10
2 changed files with 15 additions and 1 deletions

View File

@ -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;
}