VirtualBox

Changeset 86792 in vbox


Ignore:
Timestamp:
Nov 3, 2020 11:23:27 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Small cleanup for r141170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.cpp

    r86779 r86792  
    7272CProgress UIProgressTaskRefreshCloudMachine::createProgress()
    7373{
     74    /* Prepare resulting progress-wrapper: */
     75    CProgress comResult;
     76
     77    /* Initialize actual progress-wrapper: */
    7478    CProgress comProgress = m_comCloudMachine.Refresh();
    7579    if (!m_comCloudMachine.isOk())
    7680        msgCenter().cannotAcquireCloudMachineParameter(m_comCloudMachine);
    77     return comProgress;
     81    else
     82        comResult = comProgress;
     83
     84    /* Return progress-wrapper in any case: */
     85    return comResult;
    7886}
    7987
    8088void UIProgressTaskRefreshCloudMachine::handleProgressFinished(CProgress &comProgress)
    8189{
     90    /* Handle progress-wrapper errors: */
    8291    if (!comProgress.GetCanceled() && (!comProgress.isOk() || comProgress.GetResultCode() != 0))
    8392        msgCenter().cannotAcquireCloudMachineParameter(comProgress);
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