- Timestamp:
- Oct 27, 2021 12:38:19 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r92096 r92098 819 819 820 820 /* static */ 821 void UINotificationMessage::cannotCreateMachine(const CVirtualBox &comVBox, 822 UINotificationCenter *pParent /* = 0 */) 823 { 824 createMessage( 825 QApplication::translate("UIMessageCenter", "Can't create machine ..."), 826 QApplication::translate("UIMessageCenter", "Failed to create machine.") + 827 UIErrorString::formatErrorInfo(comVBox), 828 QString(), QString(), pParent); 829 } 830 831 /* static */ 821 832 void UINotificationMessage::cannotFindMachineById(const CVirtualBox &comVBox, 822 833 const QUuid &uMachineId, … … 1074 1085 .arg(uId.toString()) + 1075 1086 UIErrorString::formatErrorInfo(comMachine)); 1087 } 1088 1089 /* static */ 1090 void UINotificationMessage::cannotFindSnapshotByName(const CMachine &comMachine, 1091 const QString &strName, 1092 UINotificationCenter *pParent /* = 0 */) 1093 { 1094 createMessage( 1095 QApplication::translate("UIMessageCenter", "Can't find snapshot ..."), 1096 QApplication::translate("UIMessageCenter", "Can't find snapshot with name=<b>%1</b>.") 1097 .arg(strName) + 1098 UIErrorString::formatErrorInfo(comMachine), 1099 QString(), QString(), pParent); 1076 1100 } 1077 1101 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r92096 r92098 328 328 * @param comVBox Brings common VBox object trying to create appliance. */ 329 329 static void cannotCreateAppliance(const CVirtualBox &comVBox, UINotificationCenter *pParent = 0); 330 /** Notifies about inability to create machine. 331 * @param comVBox Brings common VBox object trying to create machine. */ 332 static void cannotCreateMachine(const CVirtualBox &comVBox, UINotificationCenter *pParent = 0); 330 333 /** Notifies about inability to find machine by ID. 331 334 * @param comVBox Brings common VBox object trying to find machine. … … 426 429 * @param uId Brings the required snapshot ID. */ 427 430 static void cannotFindSnapshotById(const CMachine &comMachine, const QUuid &uId); 431 /** Notifies about inability to find snapshot by name. 432 * @param comMachine Brings the machine being searched for particular snapshot. 433 * @param strName Brings the required snapshot name. */ 434 static void cannotFindSnapshotByName(const CMachine &comMachine, const QString &strName, UINotificationCenter *pParent = 0); 428 435 /** Notifies about inability to change snapshot. 429 436 * @param comSnapshot Brings the snapshot being changed. -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp
r92024 r92098 18 18 /* GUI includes: */ 19 19 #include "UICommon.h" 20 #include "UIMessageCenter.h"21 20 #include "UINotificationCenter.h" 22 21 #include "UIWizardCloneVM.h" … … 165 164 if (comCreatedSnapshot.isNull()) 166 165 { 167 msgCenter().cannotFindSnapshotByName(m_machine, strSnapshotName, this);166 UINotificationMessage::cannotFindSnapshotByName(m_machine, strSnapshotName, notificationCenter()); 168 167 return false; 169 168 } … … 179 178 if (!comVBox.isOk()) 180 179 { 181 msgCenter().cannotCreateMachine(comVBox, this);180 UINotificationMessage::cannotCreateMachine(comVBox, notificationCenter()); 182 181 return false; 183 182 }
Note:
See TracChangeset
for help on using the changeset viewer.