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

QUndoStack destructor should delete the commands in reverse insertion order

    XMLWordPrintable

Details

    Description

      When destroying the command stack, the commands stored are deleted in the insertion order which is a real pain in the ass when some commands depends on previously stored other ones. Say I have a command which create a document then I have an other one which create a element and add it to the previously created document. If the undo stack delete each of its stored commands in the insertion order the document will be deleted before the element. This is not cool because the element can't notify its document about its own deletion without crashing the program.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            pikatos pikatos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes