- Timestamp:
- Dec 14, 2023 4:22:28 PM (17 months ago)
- svn:sync-xref-src-repo-rev:
- 160754
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r101078 r102600 69 69 #include "CNATNetwork.h" 70 70 #include "CNetworkAdapter.h" 71 #include "CPlatform.h" 71 72 #include "CPlatformProperties.h" 72 73 #include "CRangedIntegerFormValue.h" … … 628 629 UIErrorString::formatErrorInfo(comAppliance), 629 630 QString(), QString(), pParent); 631 } 632 633 /* static */ 634 void UINotificationMessage::cannotAcquirePlatformParameter(const CPlatform &comPlatform) 635 { 636 createMessage( 637 QApplication::translate("UIMessageCenter", "Platform failure ..."), 638 QApplication::translate("UIMessageCenter", "Failed to acquire platform parameter.") + 639 UIErrorString::formatErrorInfo(comPlatform)); 630 640 } 631 641 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r101078 r102600 286 286 static void cannotAcquireApplianceParameter(const CAppliance &comAppliance, 287 287 UINotificationCenter *pParent = 0); 288 /** Notifies about inability to acquire IPlatform parameter. 289 * @param comPlatform Brings the object parameter get acquired from. */ 290 static void cannotAcquirePlatformParameter(const CPlatform &comPlatform); 288 291 /** Notifies about inability to acquire IPlatformProperties parameter. 289 292 * @param comProperties Brings the object parameter get acquired from. */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r102599 r102600 306 306 return false; 307 307 CPlatform comPlatform = comMachine.GetPlatform(); 308 const KPlatformArchitecture enmArchType = comPlatform.GetArchitecture(); 309 const bool fSuccess = comMachine.isOk(); 310 if (!fSuccess) 311 UINotificationMessage::cannotAcquireMachineParameter(comMachine); 312 else 313 enmType = enmArchType; 308 bool fSuccess = comMachine.isOk(); 309 if (!fSuccess) 310 UINotificationMessage::cannotAcquireMachineParameter(comMachine); 311 else 312 { 313 const KPlatformArchitecture enmArchType = comPlatform.GetArchitecture(); 314 fSuccess = comPlatform.isOk(); 315 if (!fSuccess) 316 UINotificationMessage::cannotAcquirePlatformParameter(comPlatform); 317 else 318 enmType = enmArchType; 319 } 314 320 return fSuccess; 315 321 } … … 321 327 return false; 322 328 CPlatform comPlatform = comMachine.GetPlatform(); 323 const KChipsetType enmChipsetType = comPlatform.GetChipsetType(); 324 const bool fSuccess = comMachine.isOk(); 325 if (!fSuccess) 326 UINotificationMessage::cannotAcquireMachineParameter(comMachine); 327 else 328 enmType = enmChipsetType; 329 bool fSuccess = comMachine.isOk(); 330 if (!fSuccess) 331 UINotificationMessage::cannotAcquireMachineParameter(comMachine); 332 else 333 { 334 const KChipsetType enmChipsetType = comPlatform.GetChipsetType(); 335 fSuccess = comPlatform.isOk(); 336 if (!fSuccess) 337 UINotificationMessage::cannotAcquirePlatformParameter(comPlatform); 338 else 339 enmType = enmChipsetType; 340 } 329 341 return fSuccess; 330 342 }
Note:
See TracChangeset
for help on using the changeset viewer.