- Timestamp:
- Dec 5, 2018 5:44:56 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/extensions/QIManagerDialog.cpp
r72714 r75988 188 188 #ifdef VBOX_WS_MAC 189 189 /* 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 } 193 195 #endif 194 196 } … … 209 211 #ifdef VBOX_WS_MAC 210 212 /* 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 } 214 218 #endif 215 219 }
Note:
See TracChangeset
for help on using the changeset viewer.