LineEdit: don't undo uneditable LineEdit

This commit is contained in:
Poommetee Ketson 2017-07-17 20:00:01 +07:00
parent 296bd5739f
commit 9be034a8cd

View file

@ -1191,7 +1191,9 @@ void LineEdit::menu_option(int p_option) {
select_all();
} break;
case MENU_UNDO: {
undo();
if (editable) {
undo();
}
} break;
}
}