Cleanup in undo in TextEdit and LineEdit
This commit is contained in:
parent
0c03d25ba4
commit
a1a5c87f9e
2 changed files with 7 additions and 11 deletions
|
|
@ -4024,7 +4024,7 @@ void TextEdit::redo() {
|
|||
}
|
||||
_push_current_op();
|
||||
|
||||
if (undo_stack_pos == nullptr) {
|
||||
if (!has_redo()) {
|
||||
return; // Nothing to do.
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue