Changeset 86668 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Oct 21, 2020 4:15:11 PM (4 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r86250 r86668 566 566 567 567 /* Update actions availability: */ 568 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)->setEnabled( !pItem || pItemProvider);569 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)->setEnabled( !pItem || pItemProvider);568 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Add)->setEnabled(pItemProvider || pItemProfile); 569 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Import)->setEnabled(pItemProvider || pItemProfile); 570 570 m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)->setEnabled(pItemProfile); 571 m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setEnabled(pItemPro file || pItemProvider);571 m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setEnabled(pItemProvider || pItemProfile); 572 572 573 573 /* If there is an item => update details data: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp
r86344 r86668 3776 3776 pMenu->clear(); 3777 3777 3778 /* Check if Ext Pack is ready, some of actions my depend on it: */3779 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);3780 const bool fExtPackAccessible = !extPack.isNull() && extPack.GetUsable();3781 3782 3778 /* The Application / 'File' menu contents is very different depending on host type. */ 3783 3779 … … 3813 3809 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 3814 3810 /* 'Show Cloud Profile Manager' action goes to 'File' menu: */ 3815 if (fExtPackAccessible) 3816 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3811 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3817 3812 3818 3813 #else /* !VBOX_WS_MAC */ … … 3837 3832 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 3838 3833 /* 'Show Cloud Profile Manager' action goes to 'File' menu: */ 3839 if (fExtPackAccessible) 3840 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3834 pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 3841 3835 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 3842 3836 /* 'Network Access Manager' action goes to 'File' menu: */ -
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86663 r86668 1414 1414 if (QMenu *pMenuGlobal = m_localMenus.value(UIChooserNodeType_Global)) 1415 1415 { 1416 /* Check if Ext Pack is ready, some of actions my depend on it: */1417 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);1418 const bool fExtPackAccessible = !extPack.isNull() && extPack.GetUsable();1419 1420 1416 #ifdef VBOX_WS_MAC 1421 1417 pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_About)); … … 1430 1426 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 1431 1427 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 1432 if (fExtPackAccessible) 1433 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1428 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1434 1429 1435 1430 #else /* !VBOX_WS_MAC */ … … 1445 1440 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager)); 1446 1441 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowHostNetworkManager)); 1447 if (fExtPackAccessible) 1448 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1442 pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowCloudProfileManager)); 1449 1443 # ifdef VBOX_GUI_WITH_NETWORK_MANAGER 1450 1444 pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager)); -
trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp
r85513 r86668 482 482 void UIToolsModel::prepareItems() 483 483 { 484 /* Check if Ext Pack is ready, some of actions my depend on it: */485 CExtPack extPack = uiCommon().virtualBox().GetExtensionPackManager().Find(GUI_ExtPackName);486 const bool fExtPackAccessible = !extPack.isNull() && extPack.GetUsable();487 488 484 /* Enable both classes of tools initially: */ 489 485 m_statesToolsEnabled[UIToolClass_Global] = true; … … 503 499 504 500 /* Cloud: */ 505 if (fExtPackAccessible) 506 m_items << new UIToolsItem(scene(), UIToolClass_Global, UIToolType_Cloud, QString(), 507 UIIconPool::iconSet(":/cloud_profile_manager_24px.png", ":/cloud_profile_manager_disabled_24px.png")); 501 m_items << new UIToolsItem(scene(), UIToolClass_Global, UIToolType_Cloud, QString(), 502 UIIconPool::iconSet(":/cloud_profile_manager_24px.png", ":/cloud_profile_manager_disabled_24px.png")); 508 503 509 504 /* Resources: */
Note:
See TracChangeset
for help on using the changeset viewer.