Changeset 86759 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Oct 29, 2020 2:28:00 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserModel.cpp
r86756 r86759 1297 1297 { 1298 1298 /* For every selected item: */ 1299 QSet<UICloudEntityKey> selectedCloud AccountKeys;1299 QSet<UICloudEntityKey> selectedCloudEntityKeys; 1300 1300 foreach (UIChooserItem *pSelectedItem, selectedItems()) 1301 1301 { … … 1316 1316 const QString strProfileName = pChildItem->name(); 1317 1317 const UICloudEntityKey cloudEntityKey = UICloudEntityKey(strProviderShortName, strProfileName); 1318 if (!selectedCloud AccountKeys.contains(cloudEntityKey))1319 selectedCloud AccountKeys.insert(cloudEntityKey);1318 if (!selectedCloudEntityKeys.contains(cloudEntityKey)) 1319 selectedCloudEntityKeys.insert(cloudEntityKey); 1320 1320 } 1321 1321 break; … … 1326 1326 const QString strProfileName = pSelectedItem->name(); 1327 1327 const UICloudEntityKey cloudEntityKey = UICloudEntityKey(strProviderShortName, strProfileName); 1328 if (!selectedCloud AccountKeys.contains(cloudEntityKey))1329 selectedCloud AccountKeys.insert(cloudEntityKey);1328 if (!selectedCloudEntityKeys.contains(cloudEntityKey)) 1329 selectedCloudEntityKeys.insert(cloudEntityKey); 1330 1330 break; 1331 1331 } … … 1345 1345 const QString strProfileName = pMachineItem->parentItem()->name(); 1346 1346 const UICloudEntityKey cloudEntityKey = UICloudEntityKey(strProviderShortName, strProfileName); 1347 if (!selectedCloud AccountKeys.contains(cloudEntityKey))1348 selectedCloud AccountKeys.insert(cloudEntityKey);1347 if (!selectedCloudEntityKeys.contains(cloudEntityKey)) 1348 selectedCloudEntityKeys.insert(cloudEntityKey); 1349 1349 } 1350 1350 break; … … 1353 1353 } 1354 1354 1355 /* Restart List Cloud Machines task for selected accountkeys: */1356 foreach (const UICloudEntityKey &cloudEntityKey, selectedCloud AccountKeys)1355 /* Restart List Cloud Machines task for selected entity keys: */ 1356 foreach (const UICloudEntityKey &cloudEntityKey, selectedCloudEntityKeys) 1357 1357 { 1358 1358 /* Skip cloud entity keys already being updated: */ … … 1911 1911 1912 1912 /* For every selected machine-item: */ 1913 QSet<UICloudEntityKey> changedCloud AccountKeys;1913 QSet<UICloudEntityKey> changedCloudEntityKeys; 1914 1914 foreach (UIChooserItemMachine *pMachineItem, machineItems) 1915 1915 { 1916 /* Compose cloud entity keys for profile: */ 1917 const QString strProviderShortName = pMachineItem->parentItem()->parentItem()->name(); 1918 const QString strProfileName = pMachineItem->parentItem()->name(); 1919 const UICloudEntityKey cloudEntityKeyForProfile = UICloudEntityKey(strProviderShortName, strProfileName); 1920 1916 1921 /* Acquire cloud machine: */ 1917 1922 CCloudMachine comMachine = pMachineItem->cache()->toCloud()->machine(); … … 1935 1940 continue; 1936 1941 } 1937 /* Compose cloud entity key to update: */ 1938 const QString strProviderShortName = pMachineItem->parentItem()->parentItem()->name(); 1939 const QString strProfileName = pMachineItem->parentItem()->name(); 1940 const UICloudEntityKey cloudEntityKey = UICloudEntityKey(strProviderShortName, strProfileName); 1941 if (!changedCloudAccountKeys.contains(cloudEntityKey)) 1942 changedCloudAccountKeys.insert(cloudEntityKey); 1943 } 1944 1945 /* Restart List Cloud Machines task for required account keys: */ 1946 foreach (const UICloudEntityKey &cloudEntityKey, changedCloudAccountKeys) 1942 1943 /* Append cloud entity key for profile to update: */ 1944 if (!changedCloudEntityKeys.contains(cloudEntityKeyForProfile)) 1945 changedCloudEntityKeys.insert(cloudEntityKeyForProfile); 1946 } 1947 1948 /* Restart List Cloud Machines task for required entity keys: */ 1949 foreach (const UICloudEntityKey &cloudEntityKey, changedCloudEntityKeys) 1947 1950 { 1948 1951 /* Skip cloud entity keys already being updated: */
Note:
See TracChangeset
for help on using the changeset viewer.