diff options
| author | Rémi Verschelde | 2017-07-17 22:18:53 +0200 |
|---|---|---|
| committer | GitHub | 2017-07-17 22:18:53 +0200 |
| commit | 8022c6858997df4190bcc360c3579a0d572ac8fc (patch) | |
| tree | a0e3b1c6704d896e84d44c26a9983db6f01d7c16 /scene/gui/line_edit.cpp | |
| parent | b2d2116a3a78dd178ce2735fb1bd3e86b52cb067 (diff) | |
| parent | 9be034a8cd3d2e71f7075a5200245b43e02444b5 (diff) | |
| download | godot-8022c6858997df4190bcc360c3579a0d572ac8fc.tar.gz godot-8022c6858997df4190bcc360c3579a0d572ac8fc.tar.zst godot-8022c6858997df4190bcc360c3579a0d572ac8fc.zip | |
Diffstat (limited to 'scene/gui/line_edit.cpp')
| -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 8d3271ca8..a418444bc 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; } } |
