Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-138567

QUndoStack::redo() does not notify state change when command becomes obsolete

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5.9, 6.8.4, 6.9.1, 6.10.0 Beta2
    • GUI: Other

      When the current command in a QUndoStack becomes obsolete during redo(), the command is removed from the stack as expected but the stack does not emit its changed signals and thus its listeners are not notified of the change in the stack state. For example, since QUndoStack::redo() does not emit the QUndoStack::canRedoChanged() and QUndoStack::redoTextChanged() signals when the current command becomes obsolete during its redo, the associated redo QAction is neither disabled nor its text updated.

      Attached example reproduces the issue. 

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            lysandra.sola Lysandra Sola
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes