Changeset 91151 in vbox
- Timestamp:
- Sep 8, 2021 12:57:06 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
-
globals/UIMessageCenter.cpp (modified) (2 diffs)
-
globals/UIMessageCenter.h (modified) (2 diffs)
-
wizards/exportappliance/UIWizardExportAppPageBasic2.cpp (modified) (1 diff)
-
wizards/importappliance/UIWizardImportAppPageBasic1.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r91149 r91151 1388 1388 } 1389 1389 1390 void UIMessageCenter::cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent /* = 0 */) const 1391 { 1392 error(pParent, MessageType_Error, 1393 tr("Failed to create cloud client."), 1394 UIErrorString::formatErrorInfo(comProfile)); 1395 } 1396 1390 1397 bool UIMessageCenter::cannotRestoreSnapshot(const CMachine &machine, const QString &strSnapshotName, const QString &strMachineName) const 1391 1398 { … … 1404 1411 UIErrorString::formatErrorInfo(progress)); 1405 1412 return false; 1406 }1407 1408 void UIMessageCenter::cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent /* = 0 */) const1409 {1410 error(pParent, MessageType_Error,1411 tr("Failed to create cloud client."),1412 UIErrorString::formatErrorInfo(comProfile));1413 1413 } 1414 1414 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r91149 r91151 381 381 void cannotAcquireCloudProviderParameter(const CCloudProvider &comProvider, QWidget *pParent = 0) const; 382 382 void cannotAcquireCloudProfileParameter(const CCloudProfile &comProfile, QWidget *pParent = 0) const; 383 384 void cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent = 0) const; 383 385 /** @} */ 384 386 … … 389 391 /** @} */ 390 392 391 void cannotCreateCloudClient(const CCloudProfile &comProfile, QWidget *pParent = 0) const;392 393 void cannotAcquireCloudClientParameter(const CCloudClient &comClient, QWidget *pParent = 0) const; 393 394 void cannotAcquireCloudClientParameter(const CProgress &comProgress, QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic2.cpp
r91145 r91151 293 293 294 294 /* Create Cloud Client: */ 295 CCloudClient comClient = m_comCloudProfile.CreateCloudClient(); 296 if (!m_comCloudProfile.isOk()) 297 { 298 msgCenter().cannotCreateCloudClient(m_comCloudProfile); 295 CCloudClient comClient = cloudClient(m_comCloudProfile); 296 if (comClient.isNull()) 299 297 break; 300 }301 298 302 299 /* Remember client: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r91145 r91151 194 194 { 195 195 /* Acquire Cloud Client: */ 196 m_comCloudClient = m_comCloudProfile.CreateCloudClient(); 197 if (!m_comCloudProfile.isOk()) 198 { 199 msgCenter().cannotCreateCloudClient(m_comCloudProfile); 200 break; 201 } 196 m_comCloudClient = cloudClient(m_comCloudProfile); 197 if (m_comCloudClient.isNull()) 198 break; 202 199 203 200 /* Gather VM names, ids and states.
Note:
See TracChangeset
for help on using the changeset viewer.

