VirtualBox

Changeset 75988 in vbox for trunk/src


Ignore:
Timestamp:
Dec 5, 2018 5:44:56 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: QIManagerDialog: macOS: Do not assert on Window menu prepare/cleanup, it's now possible this menu isn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp

    r72714 r75988  
    188188#ifdef VBOX_WS_MAC
    189189    /* Prepare 'Window' menu: */
    190     AssertPtrReturnVoid(gpWindowMenuManager);
    191     menuBar()->addMenu(gpWindowMenuManager->createMenu(this));
    192     gpWindowMenuManager->addWindow(this);
     190    if (gpWindowMenuManager)
     191    {
     192        menuBar()->addMenu(gpWindowMenuManager->createMenu(this));
     193        gpWindowMenuManager->addWindow(this);
     194    }
    193195#endif
    194196}
     
    209211#ifdef VBOX_WS_MAC
    210212    /* Cleanup 'Window' menu: */
    211     AssertPtrReturnVoid(gpWindowMenuManager);
    212     gpWindowMenuManager->removeWindow(this);
    213     gpWindowMenuManager->destroyMenu(this);
     213    if (gpWindowMenuManager)
     214    {
     215        gpWindowMenuManager->removeWindow(this);
     216        gpWindowMenuManager->destroyMenu(this);
     217    }
    214218#endif
    215219}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette