VirtualBox

Changeset 91948 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Oct 21, 2021 1:35:52 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147754
Message:

FE/Qt: bugref:10067: UIWizardExportApp: Migrate intermediate progress related to appliance export itself to notification-center.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp

    r91896 r91948  
    309309    if (isFormatCloudOne())
    310310    {
    311         /* Prepare Export VM progress: */
    312         CProgress comProgress = comAppliance.Write(format(), options, uri());
    313         if (!comAppliance.isOk())
    314         {
    315             msgCenter().cannotExportAppliance(comAppliance, this);
    316             return false;
    317         }
    318 
    319         /* Show Export VM progress: */
    320         msgCenter().showModalProgressDialog(comProgress, QApplication::translate("UIWizardExportApp", "Exporting Appliance ..."),
    321                                             ":/progress_export_90px.png", this);
    322         if (comProgress.GetCanceled())
    323             return false;
    324         if (!comProgress.isOk() || comProgress.GetResultCode() != 0)
    325         {
    326             msgCenter().cannotExportAppliance(comProgress, comAppliance.GetPath(), this);
    327             return false;
    328         }
     311        /* Export appliance: */
     312        UINotificationProgressApplianceExport *pNotification = new UINotificationProgressApplianceExport(comAppliance,
     313                                                                                                         format(),
     314                                                                                                         options,
     315                                                                                                         uri());
     316        if (cloudExportMode() == CloudExportMode_DoNotAsk)
     317            gpNotificationCenter->append(pNotification);
     318        else
     319            handleNotificationProgressNow(pNotification);
    329320    }
    330321    /* Is this VM being exported locally? */
Note: See TracChangeset for help on using the changeset viewer.

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