Changeset 84099 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 30, 2020 10:50:00 AM (5 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/globals
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.cpp
r84056 r84099 525 525 strMachineName, 526 526 ":/progress_settings_90px.png", pParent, 0); 527 if (comProgress.GetCanceled()) 528 return false; 527 529 if (!comProgress.isOk() || comProgress.GetResultCode() != 0) 528 530 { … … 553 555 /* Wait for "Get settings form" progress: */ 554 556 comProgress.WaitForCompletion(-1); 557 if (comProgress.GetCanceled()) 558 return false; 555 559 if (!comProgress.isOk() || comProgress.GetResultCode() != 0) 556 560 { … … 625 629 else 626 630 comProgress.WaitForCompletion(-1); 627 if (!comProgress. isOk() || comProgress.GetResultCode() != 0)631 if (!comProgress.GetCanceled()) 628 632 { 629 if (pParent) 630 msgCenter().cannotAcquireCloudClientParameter(comProgress, pParent); 633 if (!comProgress.isOk() || comProgress.GetResultCode() != 0) 634 { 635 if (pParent) 636 msgCenter().cannotAcquireCloudClientParameter(comProgress, pParent); 637 else 638 strErrorMessage = UIErrorString::formatErrorInfo(comProgress); 639 } 631 640 else 632 strErrorMessage = UIErrorString::formatErrorInfo(comProgress); 633 } 634 else 635 { 636 /* Fetch acquired objects to map: */ 637 const QVector<QString> instanceIds = comIDs.GetValues(); 638 const QVector<QString> instanceNames = comNames.GetValues(); 639 QMap<QString, QString> resultMap; 640 for (int i = 0; i < instanceIds.size(); ++i) 641 resultMap[instanceIds.at(i)] = instanceNames.at(i); 642 return resultMap; 641 { 642 /* Fetch acquired objects to map: */ 643 const QVector<QString> instanceIds = comIDs.GetValues(); 644 const QVector<QString> instanceNames = comNames.GetValues(); 645 QMap<QString, QString> resultMap; 646 for (int i = 0; i < instanceIds.size(); ++i) 647 resultMap[instanceIds.at(i)] = instanceNames.at(i); 648 return resultMap; 649 } 643 650 } 644 651 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICloudNetworkingStuff.h
r84056 r84099 27 27 /* COM includes: */ 28 28 #include "COMEnums.h" 29 #include "CCloudClient.h" 30 #include "CCloudMachine.h" 29 31 #include "CCloudProfile.h" 30 32 #include "CCloudProvider.h" 31 33 #include "CCloudProviderManager.h" 32 #include "CCloudClient.h"33 #include "CCloudMachine.h"34 34 #include "CForm.h" 35 35
Note:
See TracChangeset
for help on using the changeset viewer.