VirtualBox

Changeset 86668 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Oct 21, 2020 4:15:11 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Do not limit Cloud Profile Manager tool availability to ext-pack presence.

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  
    566566
    567567    /* 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);
    570570    m_pActionPool->action(UIActionIndexMN_M_Cloud_S_Remove)->setEnabled(pItemProfile);
    571     m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setEnabled(pItemProfile || pItemProvider);
     571    m_pActionPool->action(UIActionIndexMN_M_Cloud_T_Details)->setEnabled(pItemProvider || pItemProfile);
    572572
    573573    /* If there is an item => update details data: */
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIActionPoolManager.cpp

    r86344 r86668  
    37763776    pMenu->clear();
    37773777
    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 
    37823778    /* The Application / 'File' menu contents is very different depending on host type. */
    37833779
     
    38133809    pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager));
    38143810    /* '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));
    38173812
    38183813#else /* !VBOX_WS_MAC */
     
    38373832    pMenu->addAction(action(UIActionIndexMN_M_File_S_ShowHostNetworkManager));
    38383833    /* '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));
    38413835# ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    38423836    /* 'Network Access Manager' action goes to 'File' menu: */
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp

    r86663 r86668  
    14141414    if (QMenu *pMenuGlobal = m_localMenus.value(UIChooserNodeType_Global))
    14151415    {
    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 
    14201416#ifdef VBOX_WS_MAC
    14211417        pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_About));
     
    14301426        pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager));
    14311427        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));
    14341429
    14351430#else /* !VBOX_WS_MAC */
     
    14451440        pMenuGlobal->addAction(actionPool()->action(UIActionIndexMN_M_File_S_ShowVirtualMediumManager));
    14461441        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));
    14491443# ifdef VBOX_GUI_WITH_NETWORK_MANAGER
    14501444        pMenuGlobal->addAction(actionPool()->action(UIActionIndex_M_Application_S_NetworkAccessManager));
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/tools/UIToolsModel.cpp

    r85513 r86668  
    482482void UIToolsModel::prepareItems()
    483483{
    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 
    488484    /* Enable both classes of tools initially: */
    489485    m_statesToolsEnabled[UIToolClass_Global] = true;
     
    503499
    504500    /* 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"));
    508503
    509504    /* Resources: */
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette