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

OSX: Crash when using application menu after closing a main window

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.0.1
    • Fix Version/s: 5.1.0 RC1
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      OSX, 10.8.2
    • Platform/s:
      macOS
    • Commits:
      27f68818c85dfe615df24cf1baa0087f9d863532

      Description

      When opening multiple QMainWindows and closing one, the app crashes when using the application menu.

      Testcase:
      start qtbase/examples/widgets/mainwindows/sdi/sdi.app
      open a second window
      close the newly opened window
      click on "sdi" in the menu bar
      ->crash

      This happens with every app using menu items, which get merged into the application menu (about, preferences, exit).
      It seems like closing a main window does cleanup its menu including merged items, but that the merged items are still referenced.

        Attachments

        For Gerrit Dashboard: QTBUG-30451
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            dedietri Gabriel de Dietrich (drgvond)
            Reporter:
            thomschm Thomas Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes