diff options
author | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-17 20:00:01 +0700 |
---|---|---|
committer | Poommetee Ketson <poommetee@protonmail.com> | 2017-07-17 20:00:01 +0700 |
commit | 9be034a8cd3d2e71f7075a5200245b43e02444b5 (patch) | |
tree | 1afd2788aa9f4368507fcfa6491f94d01acb4284 | |
parent | 296bd5739f74ee8433b3ecf3b03f389b14c2cc22 (diff) |
LineEdit: don't undo uneditable LineEdit
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 8d3271ca8c..a418444bc5 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1191,7 +1191,9 @@ void LineEdit::menu_option(int p_option) { select_all(); } break; case MENU_UNDO: { - undo(); + if (editable) { + undo(); + } } break; } } |