Merge pull request #9672 from Noshyaar/pr-lineedit
LineEdit: don't undo uneditable LineEdit
This commit is contained in:
commit
8022c68589
1 changed files with 3 additions and 1 deletions
|
@ -1191,7 +1191,9 @@ void LineEdit::menu_option(int p_option) {
|
||||||
select_all();
|
select_all();
|
||||||
} break;
|
} break;
|
||||||
case MENU_UNDO: {
|
case MENU_UNDO: {
|
||||||
undo();
|
if (editable) {
|
||||||
|
undo();
|
||||||
|
}
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue