VirtualBox

Changeset 103027 in vbox


Ignore:
Timestamp:
Jan 24, 2024 3:49:58 PM (10 months ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10501: Adjust cloud update timer functionality to automatically check for existing cloud profiles, not just after previous update, where the first should be manual one.

File:
1 edited

Legend:

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

    r102848 r103027  
    12711271    UIChooserAbstractModel::sltHandleReadCloudMachineListTaskComplete();
    12721272
    1273     /* Restart cloud profile update timer: */
    1274     m_pTimerCloudProfileUpdate->start(10000);
     1273    /* Postpone update since we have just updated: */
     1274    if (m_pTimerCloudProfileUpdate)
     1275        m_pTimerCloudProfileUpdate->start(10000);
    12751276}
    12761277
     
    13521353void UIChooserModel::sltUpdateSelectedCloudProfiles()
    13531354{
     1355    /* Postpone update since we are already working on it: */
     1356    if (m_pTimerCloudProfileUpdate)
     1357        m_pTimerCloudProfileUpdate->start(10000);
     1358
    13541359    /* Compose a list of items to update: */
    13551360    QList<UIChooserItem*> itemsToUpdate;
     
    15941599    m_pTimerCloudProfileUpdate = new QTimer;
    15951600    if (m_pTimerCloudProfileUpdate)
    1596         m_pTimerCloudProfileUpdate->setSingleShot(true);
     1601        m_pTimerCloudProfileUpdate->start(10000);
    15971602}
    15981603
     
    19541959
    19551960    /* Stop cloud profile update prematurely: */
    1956     m_pTimerCloudProfileUpdate->stop();
     1961    if (m_pTimerCloudProfileUpdate)
     1962        m_pTimerCloudProfileUpdate->stop();
    19571963
    19581964    /* Confirm machine removal: */
     
    19611967    {
    19621968        /* Resume cloud profile update if cancelled: */
    1963         m_pTimerCloudProfileUpdate->start(10000);
     1969        if (m_pTimerCloudProfileUpdate)
     1970            m_pTimerCloudProfileUpdate->start(10000);
    19641971        return;
    19651972    }
     
    19911998        gpNotificationCenter->append(pNotification);
    19921999    }
     2000
     2001    /* Resume cloud profile update after all: */
     2002    if (m_pTimerCloudProfileUpdate)
     2003        m_pTimerCloudProfileUpdate->start(10000);
    19932004}
    19942005
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