LineEdit: don't undo uneditable LineEdit
(cherry picked from commit 9be034a8cd
)
This commit is contained in:
parent
992b415702
commit
33bdd92f1e
1 changed files with 3 additions and 1 deletions
|
@ -1184,7 +1184,9 @@ void LineEdit::menu_option(int p_option) {
|
|||
select_all();
|
||||
} break;
|
||||
case MENU_UNDO: {
|
||||
undo();
|
||||
if (editable) {
|
||||
undo();
|
||||
}
|
||||
} break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue