Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-28681

Undefined behavior of the project tree when using 'Restore last session on startup'

    XMLWordPrintable

Details

    • macOS, Windows
    • 4e1ff9ed8 (11.0), 9f8998881 (master)

    Description

      The project tree opens fully collapsed or in some rare cases fully expanded when one opens Qt Creator 9.0.1 when it automatically loads the last loaded project, regardless of the collapsed or expanded state of the tree when when one closes Qt Creator

      Steps to reproduce the issue with Qt Creator 9.0.1:
      1) On Windows 10, go through "File > Sessions > Manage > enable 'Restore last session on startup'"
      2) Open some CMake project
      3) check that 'sync with editor' is disabled
      4) Expand some nodes in the project tree
      5) Close Qt Creator
      6) Launch Qt Creator again and the last session is automatically restored but the nodes are collapsed when they would be expected to in the same state than before closing the QtC.

      On one macOS 13 device, this seemed to not to be true and it opened the qmake projects always fully expanded. So the behavior seems to be undefined.

      Issue did not reproduce on every device when tested.

      Attachments

        Issue Links

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

          Activity

            People

              con Eike Ziller
              foxxx Tuukka Kettunen
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes