Changeset 69958 in vbox
- Timestamp:
- Dec 6, 2017 1:56:44 PM (7 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 3 edited
-
UIMachineLogic.cpp (modified) (4 diffs)
-
UIMachineLogic.h (modified) (1 diff)
-
UISession.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r69935 r69958 1217 1217 /* Clear the menu to get rid of any previously added actions and separators: */ 1218 1218 pDockMenu->clear(); 1219 1219 1220 1220 /* Add all the 'Machine' menu entries to the 'Dock' menu: */ 1221 1221 QList<QAction*> actions = actionPool()->action(UIActionIndexRT_M_Machine)->menu()->actions(); … … 1366 1366 if (!allowedActions.empty()) 1367 1367 { 1368 QAction * separator = new QAction(pDockMenu);1369 separator->setSeparator(true);1370 allowedActions.push_back( separator);1368 QAction *pSeparator = new QAction(pDockMenu); 1369 pSeparator->setSeparator(true); 1370 allowedActions.push_back(pSeparator); 1371 1371 pDockMenu->insertActions(m_pDockSettingMenuAction, allowedActions); 1372 1372 m_dockMachineMenuActions = allowedActions; … … 1401 1401 if (!m_pDockSettingsMenuSeparator) 1402 1402 m_pDockSettingsMenuSeparator = pDockSettingsMenu->addSeparator(); 1403 for (int i =0; i < cVisibleGuestScreens; ++i)1403 for (int i=0; i < cVisibleGuestScreens; ++i) 1404 1404 { 1405 1405 QAction *pAction = new QAction(m_pDockPreviewSelectMonitorGroup); … … 3061 3061 } 3062 3062 #endif 3063 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r69935 r69958 410 410 int m_DockIconPreviewMonitor; 411 411 QAction *m_pDockSettingMenuAction; 412 /* Keep a list of machine menu actions that we add to dock menu:*/412 /* Keeps a list of machine menu actions that we add to dock menu. */ 413 413 QList<QAction*> m_dockMachineMenuActions; 414 414 #endif /* VBOX_WS_MAC */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r69935 r69958 1474 1474 } 1475 1475 /* Update the dock menu as well: */ 1476 if (machineLogic())1476 if (machineLogic()) 1477 1477 machineLogic()->updateDock(); 1478 1478 }
Note:
See TracChangeset
for help on using the changeset viewer.

