Changeset 73674 in vbox
- Timestamp:
- Aug 14, 2018 6:49:28 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualBoxManager.cpp
r73673 r73674 1883 1883 { 1884 1884 /* Determine whether Machine or Group menu should be shown at all: */ 1885 const bool fMachineOrGroupMenuShown = m_pWidget->isMachineItemSelected() ;1885 const bool fMachineOrGroupMenuShown = m_pWidget->isMachineItemSelected() || m_pWidget->isGroupItemSelected(); 1886 1886 const bool fMachineMenuShown = !isSingleGroupSelected(); 1887 1887 m_pMachineMenuAction->setVisible(fMachineOrGroupMenuShown && fMachineMenuShown); … … 1892 1892 foreach (UIAction *pAction, m_machineActions) 1893 1893 pAction->hideShortcut(); 1894 if (fMachineMenuShown)1894 else 1895 1895 foreach (UIAction *pAction, m_groupActions) 1896 1896 pAction->hideShortcut(); … … 1899 1899 foreach (UIAction *pAction, m_machineActions) 1900 1900 pAction->setVisible(fMachineOrGroupMenuShown); 1901 1902 /* Show what should be shown: */ 1901 foreach (UIAction *pAction, m_groupActions) 1902 pAction->setVisible(fMachineOrGroupMenuShown); 1903 1904 /* Show action shortcuts: */ 1903 1905 if (fMachineMenuShown) 1904 1906 foreach (UIAction *pAction, m_machineActions) 1905 1907 pAction->showShortcut(); 1906 if (!fMachineMenuShown)1908 else 1907 1909 foreach (UIAction *pAction, m_groupActions) 1908 1910 pAction->showShortcut();
Note:
See TracChangeset
for help on using the changeset viewer.