Changeset 68373 in vbox for trunk/src/VBox
- Timestamp:
- Aug 10, 2017 2:30:36 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp
r68342 r68373 281 281 m_pPaneToolsMachine->setCurrentItem(pItem); 282 282 283 /* Update Machine tab-bar visibility */ 284 m_pTabBarMachine->setEnabled(pItem && pItem->accessible()); 285 283 286 /* If current item exists & accessible: */ 284 287 if (pItem && pItem->accessible()) … … 289 292 /* Make sure Details or Snapshot pane is chosen if opened: */ 290 293 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details)) 291 m_pPaneToolsMachine->openTool(ToolTypeMachine_Details);294 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->trigger(); 292 295 else 293 296 if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Snapshots)) 294 m_pPaneToolsMachine->openTool(ToolTypeMachine_Snapshots);297 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->trigger(); 295 298 } 296 299 … … 1091 1094 /* Update action visibility: */ 1092 1095 updateActionsVisibility(); 1096 1097 /* Make sure chosen item fetched: */ 1098 sltHandleChooserPaneIndexChange(false /* update details? */, false /* update snapshots? */); 1093 1099 } 1094 1100 … … 1174 1180 setWindowTitle(strTitle); 1175 1181 1176 /* Make sure details and snapshot panes are updated: */1182 /* Make sure chosen item fetched: */ 1177 1183 sltHandleChooserPaneIndexChange(false /* update details? */, false /* update snapshots? */); 1178 1184 … … 2379 2385 actionPool()->action(UIActionIndexST_M_Machine_T_Pause)->blockSignals(false); 2380 2386 2387 /* Enable/disable tools actions: */ 2388 actionPool()->action(UIActionIndexST_M_Tools_M_Machine)->setEnabled(isActionEnabled(UIActionIndexST_M_Tools_M_Machine, items)); 2389 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Details)->setEnabled(isActionEnabled(UIActionIndexST_M_Tools_M_Machine_Details, items)); 2390 actionPool()->action(UIActionIndexST_M_Tools_M_Machine_Snapshots)->setEnabled(isActionEnabled(UIActionIndexST_M_Tools_M_Machine_Snapshots, items)); 2391 2381 2392 #ifdef VBOX_WS_MAC 2382 2393 // WORKAROUND: … … 2512 2523 { 2513 2524 return isActionEnabled(UIActionIndexST_M_Machine_M_Close, items); 2525 } 2526 case UIActionIndexST_M_Tools_M_Machine: 2527 case UIActionIndexST_M_Tools_M_Machine_Details: 2528 case UIActionIndexST_M_Tools_M_Machine_Snapshots: 2529 { 2530 return pItem->accessible(); 2514 2531 } 2515 2532 default:
Note:
See TracChangeset
for help on using the changeset viewer.