VirtualBox

Changeset 86779 in vbox


Ignore:
Timestamp:
Nov 2, 2020 11:35:12 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
141178
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Fixing regression done in r141164; Shouldn't cancel current refresh call when selection changed, only cancel subsequent calls.

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

Legend:

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

    r86774 r86779  
    144144}
    145145
     146void UIVirtualMachineItemCloud::stopAsyncUpdates()
     147{
     148    /* Ignore cancel request if progress-task is absent: */
     149    if (!m_pProgressTaskRefresh)
     150        return;
     151
     152    /* Mark update canceled in any case: */
     153    m_fRefreshScheduled = false;
     154}
     155
    146156void UIVirtualMachineItemCloud::waitForAsyncInfoUpdateFinished()
    147157{
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/UIVirtualMachineItemCloud.h

    r86774 r86779  
    7474        QString fakeCloudItemErrorMessage() const { return m_strFakeCloudItemErrorMessage; }
    7575
    76         /** Updates cloud VM info async way, @a fDelayed if requested or instant otherwise. */
     76        /** Updates cloud VM info async way, @a fDelayed if requested or instant otherwise.
     77          * @param  fSubscribe  Brings whether this update should be performed periodically. */
    7778        void updateInfoAsync(bool fDelayed, bool fSubscribe = false);
     79        /** Stop periodical updates previously requested. */
     80        void stopAsyncUpdates();
    7881        /** Makes sure async info update is finished.
    7982          * @note  This method creates own event-loop to avoid blocking calling thread event processing,
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserItemMachine.cpp

    r86771 r86779  
    235235            pCloudMachineItem->updateInfoAsync(false /* delayed? */, true /* subscribe */);
    236236        else
    237             pCloudMachineItem->waitForAsyncInfoUpdateFinished();
     237            pCloudMachineItem->stopAsyncUpdates();
    238238    }
    239239}
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