VirtualBox

Ignore:
Timestamp:
May 29, 2019 1:32:08 PM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9434: Import Appliance wizard: 1st page: Make sure GetInstanceInfo progress is used, which is possible since r130942.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r78823 r78848  
    19171917}
    19181918
    1919 void UIMessageCenter::cannotAcquireCloudInstanceInfo(const CCloudClient &comClient, QWidget *pParent /* = 0 */) const
    1920 {
    1921     error(pParent, MessageType_Critical, tr("<p>Cannot acquire a cloud instance information.</p>"),
    1922           UIErrorString::formatErrorInfo(comClient));
    1923 }
    1924 
    19251919void UIMessageCenter::cannotImportAppliance(CAppliance &appliance, QWidget *pParent /* = 0*/) const
    19261920{
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r78823 r78848  
    407407    void cannotCreateVirtualSystemDescription(const CAppliance &comAppliance, QWidget *pParent = 0) const;
    408408    void cannotAcquireVirtualSystemDescription(const CAppliance &comAppliance, QWidget *pParent = 0) const;
    409     void cannotAcquireCloudInstanceInfo(const CCloudClient &comClient, QWidget *pParent = 0) const;
    410409    void cannotImportAppliance(CAppliance &appliance, QWidget *pParent = 0) const;
    411410    void cannotImportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent = 0) const;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp

    r78846 r78848  
    369369
    370370            /* Populate virtual system description with default values: */
    371             /// @todo make sure this is a progress returning call
    372             m_comCloudClient.GetInstanceInfo(machineId(), comDescription);
     371            CProgress comInstanceInfoProgress = m_comCloudClient.GetInstanceInfo(machineId(), comDescription);
    373372            if (!m_comCloudClient.isOk())
    374373            {
    375                 msgCenter().cannotAcquireCloudInstanceInfo(m_comCloudClient);
     374                msgCenter().cannotAcquireCloudClientParameter(m_comCloudClient);
     375                break;
     376            }
     377
     378            /* Show "Acquire intance info" progress: */
     379            msgCenter().showModalProgressDialog(comInstanceInfoProgress, UIWizardImportApp::tr("Acquire intance info..."),
     380                                                ":/progress_reading_appliance_90px.png", 0, 0);
     381            if (!comInstanceInfoProgress.isOk() || comInstanceInfoProgress.GetResultCode() != 0)
     382            {
     383                msgCenter().cannotAcquireCloudClientParameter(comInstanceInfoProgress);
    376384                break;
    377385            }
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