Changeset 86692 in vbox for trunk/src/VBox
- Timestamp:
- Oct 23, 2020 3:07:39 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/cloud/profilemanager/UICloudProfileManager.cpp
r86690 r86692 55 55 enum 56 56 { 57 Data_ItemType = Qt::UserRole + 1,58 Data_Provider ID= Qt::UserRole + 2,59 Data_Definition = Qt::UserRole + 3,57 Data_ItemType = Qt::UserRole + 1, 58 Data_ProviderShortName = Qt::UserRole + 2, 59 Data_Definition = Qt::UserRole + 3, 60 60 }; 61 61 … … 126 126 /* Update item fields: */ 127 127 setText(Column_Name, m_strName); 128 setData(Column_Name, Data_Provider ID, m_uId);128 setData(Column_Name, Data_ProviderShortName, m_strShortName); 129 129 setData(Column_Name, Data_Definition, QVariant::fromValue(definition(m_strShortName))); 130 130 setCheckState(Column_ListVMs, m_fRestricted ? Qt::Unchecked : Qt::Checked); … … 279 279 /* Get provider item: */ 280 280 UIItemCloudProvider *pProviderItem = qobject_cast<UIItemCloudProvider*>(pProfileItem->parentItem()); 281 /* Acquire provider ID: */282 const Q Uuid uId = pProviderItem->data(Column_Name, Data_ProviderID).toUuid();281 /* Acquire provider short name: */ 282 const QString strShortName = pProviderItem->data(Column_Name, Data_ProviderShortName).toString(); 283 283 284 284 /* Look for corresponding provider: */ 285 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderBy Id(uId);285 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderByShortName(strShortName); 286 286 /* Show error message if necessary: */ 287 287 if (!comCloudProviderManager.isOk()) 288 msgCenter().cannot FindCloudProvider(comCloudProviderManager, uId, this);288 msgCenter().cannotAcquireCloudProviderManagerParameter(comCloudProviderManager, this); 289 289 else 290 290 { … … 376 376 else 377 377 { 378 /* Acquire provider ID: */379 const Q Uuid uId = pProviderItem->data(Column_Name, Data_ProviderID).toUuid();378 /* Acquire provider short name: */ 379 const QString strShortName = pProviderItem->data(Column_Name, Data_ProviderShortName).toString(); 380 380 381 381 /* Look for corresponding provider: */ 382 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderBy Id(uId);382 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderByShortName(strShortName); 383 383 /* Show error message if necessary: */ 384 384 if (!comCloudProviderManager.isOk()) 385 msgCenter().cannot FindCloudProvider(comCloudProviderManager, uId, this);385 msgCenter().cannotAcquireCloudProviderManagerParameter(comCloudProviderManager, this); 386 386 else 387 387 { … … 427 427 else 428 428 { 429 /* Acquire provider ID: */430 const Q Uuid uId = pProviderItem->data(Column_Name, Data_ProviderID).toUuid();429 /* Acquire provider short name: */ 430 const QString strShortName = pProviderItem->data(Column_Name, Data_ProviderShortName).toString(); 431 431 432 432 /* Look for corresponding provider: */ 433 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderBy Id(uId);433 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderByShortName(strShortName); 434 434 /* Show error message if necessary: */ 435 435 if (!comCloudProviderManager.isOk()) 436 msgCenter().cannot FindCloudProvider(comCloudProviderManager, uId, this);436 msgCenter().cannotAcquireCloudProviderManagerParameter(comCloudProviderManager, this); 437 437 else 438 438 { … … 473 473 /* Get provider item: */ 474 474 UIItemCloudProvider *pProviderItem = qobject_cast<UIItemCloudProvider*>(pProfileItem->parentItem()); 475 /* Acquire provider ID: */476 const Q Uuid uId = pProviderItem->data(Column_Name, Data_ProviderID).toUuid();475 /* Acquire provider short name: */ 476 const QString strShortName = pProviderItem->data(Column_Name, Data_ProviderShortName).toString(); 477 477 478 478 /* Look for corresponding provider: */ 479 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderBy Id(uId);479 CCloudProvider comCloudProvider = comCloudProviderManager.GetProviderByShortName(strShortName); 480 480 /* Show error message if necessary: */ 481 481 if (!comCloudProviderManager.isOk()) 482 msgCenter().cannot FindCloudProvider(comCloudProviderManager, uId, this);482 msgCenter().cannotAcquireCloudProviderManagerParameter(comCloudProviderManager, this); 483 483 else 484 484 {
Note:
See TracChangeset
for help on using the changeset viewer.