VirtualBox

Ignore:
Timestamp:
Sep 20, 2023 7:25:00 AM (16 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10523 Adding a separate class to manage os guest types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r101035 r101183  
    6363#include "UIConverter.h"
    6464#include "UIDesktopWidgetWatchdog.h"
     65#include "UIGuestOSTypeII.h"
    6566#include "UIExtraDataDefs.h"
    6667#include "UIExtraDataManager.h"
     
    214215    , m_fWrappersValid(false)
    215216    , m_fVBoxSVCAvailable(true)
     217    , m_pGuestOSTypeManager(new UIGuestOSTypeManager)
    216218    , m_pThreadPool(0)
    217219    , m_pThreadPoolCloud(0)
     
    224226UICommon::~UICommon()
    225227{
     228    delete m_pGuestOSTypeManager;
    226229    /* Unassign instance: */
    227230    s_pInstance = 0;
     
    30143017            {
    30153018                const CGuestOSType os = guestOSTypes.at(i);
     3019                //printf("%s -- %s -- %s\n", qPrintable(os.GetId()), qPrintable(os.GetVariant()), qPrintable(os.GetDescription()));
    30163020                const QString strFamilyID = os.GetFamilyId();
    30173021                const QString strFamilyDescription = os.GetFamilyDescription();
     
    30263030        }
    30273031    }
    3028 
     3032    if (m_pGuestOSTypeManager)
     3033        m_pGuestOSTypeManager->reCacheGuestOSTypes(guestOSTypes);
    30293034    /* Mark wrappers valid: */
    30303035    m_fWrappersValid = true;
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