Changeset 46846 in vbox
- Timestamp:
- Jun 27, 2013 2:25:51 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPool.cpp
r44710 r46846 661 661 * For simplicity we doing this on all platforms right now. */ 662 662 663 /* Recreate 'help' menu items as well. 664 * This makes sure they are removed also from the Application menu: */ 665 if (m_pool[UIActionIndex_Simple_Contents]) 666 delete m_pool[UIActionIndex_Simple_Contents]; 667 m_pool[UIActionIndex_Simple_Contents] = new UIActionSimpleContents(this); 668 if (m_pool[UIActionIndex_Simple_WebSite]) 669 delete m_pool[UIActionIndex_Simple_WebSite]; 670 m_pool[UIActionIndex_Simple_WebSite] = new UIActionSimpleWebSite(this); 671 if (m_pool[UIActionIndex_Simple_ResetWarnings]) 672 delete m_pool[UIActionIndex_Simple_ResetWarnings]; 673 m_pool[UIActionIndex_Simple_ResetWarnings] = new UIActionSimpleResetWarnings(this); 674 if (m_pool[UIActionIndex_Simple_NetworkAccessManager]) 675 delete m_pool[UIActionIndex_Simple_NetworkAccessManager]; 676 m_pool[UIActionIndex_Simple_NetworkAccessManager] = new UIActionSimpleNetworkAccessManager(this); 677 #if defined(Q_WS_MAC) && (QT_VERSION >= 0x040700) 678 /* For whatever reason, Qt doesn't fully remove items with a 679 * ApplicationSpecificRole from the application menu. Although the QAction 680 * itself is deleted, a dummy entry is leaved back in the menu. 681 * Hiding before deletion helps. */ 682 m_pool[UIActionIndex_Simple_CheckForUpdates]->setVisible(false); 683 #endif 684 #if !(defined(Q_WS_MAC) && (QT_VERSION < 0x040700)) 685 if (m_pool[UIActionIndex_Simple_CheckForUpdates]) 686 delete m_pool[UIActionIndex_Simple_CheckForUpdates]; 687 m_pool[UIActionIndex_Simple_CheckForUpdates] = new UIActionSimpleCheckForUpdates(this); 688 if (m_pool[UIActionIndex_Simple_About]) 689 delete m_pool[UIActionIndex_Simple_About]; 690 m_pool[UIActionIndex_Simple_About] = new UIActionSimpleAbout(this); 691 #endif 692 693 /* 'Help' menu itself: */ 663 /* 'Help' menu: */ 694 664 if (m_pool[UIActionIndex_Menu_Help]) 695 665 delete m_pool[UIActionIndex_Menu_Help];
Note:
See TracChangeset
for help on using the changeset viewer.

