Changeset 103027 in vbox
- Timestamp:
- Jan 24, 2024 3:49:58 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r102848 r103027 1271 1271 UIChooserAbstractModel::sltHandleReadCloudMachineListTaskComplete(); 1272 1272 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); 1275 1276 } 1276 1277 … … 1352 1353 void UIChooserModel::sltUpdateSelectedCloudProfiles() 1353 1354 { 1355 /* Postpone update since we are already working on it: */ 1356 if (m_pTimerCloudProfileUpdate) 1357 m_pTimerCloudProfileUpdate->start(10000); 1358 1354 1359 /* Compose a list of items to update: */ 1355 1360 QList<UIChooserItem*> itemsToUpdate; … … 1594 1599 m_pTimerCloudProfileUpdate = new QTimer; 1595 1600 if (m_pTimerCloudProfileUpdate) 1596 m_pTimerCloudProfileUpdate->s etSingleShot(true);1601 m_pTimerCloudProfileUpdate->start(10000); 1597 1602 } 1598 1603 … … 1954 1959 1955 1960 /* Stop cloud profile update prematurely: */ 1956 m_pTimerCloudProfileUpdate->stop(); 1961 if (m_pTimerCloudProfileUpdate) 1962 m_pTimerCloudProfileUpdate->stop(); 1957 1963 1958 1964 /* Confirm machine removal: */ … … 1961 1967 { 1962 1968 /* Resume cloud profile update if cancelled: */ 1963 m_pTimerCloudProfileUpdate->start(10000); 1969 if (m_pTimerCloudProfileUpdate) 1970 m_pTimerCloudProfileUpdate->start(10000); 1964 1971 return; 1965 1972 } … … 1991 1998 gpNotificationCenter->append(pNotification); 1992 1999 } 2000 2001 /* Resume cloud profile update after all: */ 2002 if (m_pTimerCloudProfileUpdate) 2003 m_pTimerCloudProfileUpdate->start(10000); 1993 2004 } 1994 2005
Note:
See TracChangeset
for help on using the changeset viewer.