VirtualBox

Changeset 91969 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2021 3:53:59 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UIWizardImportApp: Another place to migrate intermediate progress related to appliance reading to notification-center.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r91966 r91969  
    16131613
    16141614    /** Holds the appliance being read. */
    1615     CAppliance               m_comAppliance;
     1615    CAppliance  m_comAppliance;
    16161616    /** Holds the appliance path. */
    1617     QString                  m_strPath;
     1617    QString     m_strPath;
    16181618};
    16191619
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportApp.cpp

    r91709 r91969  
    3535#include "UIWizardImportAppPageSettings.h"
    3636#include "UIWizardImportAppPageSource.h"
    37 
    38 /* COM includes: */
    39 #include "CProgress.h"
    4037
    4138
     
    183180
    184181    /* Read the file to appliance: */
    185     CProgress comProgress = comAppliance.Read(strName);
    186     if (!comAppliance.isOk())
    187     {
    188         msgCenter().cannotImportAppliance(comAppliance, this);
     182    UINotificationProgressApplianceRead *pNotification = new UINotificationProgressApplianceRead(comAppliance, strName);
     183    if (!handleNotificationProgressNow(pNotification))
    189184        return false;
    190     }
    191 
    192     /* Show Reading Appliance progress: */
    193     msgCenter().showModalProgressDialog(comProgress, tr("Reading Appliance ..."),
    194                                         ":/progress_reading_appliance_90px.png", this);
    195     if (!comProgress.isOk() || comProgress.GetResultCode() != 0)
    196     {
    197         msgCenter().cannotImportAppliance(comProgress, comAppliance.GetPath(), this);
    198         return false;
    199     }
    200185
    201186    /* Now we have to interpret that stuff: */
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