Changeset 91029 in vbox
- Timestamp:
- Aug 31, 2021 11:48:58 AM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
-
globals/UIMessageCenter.cpp (modified) (1 diff)
-
globals/UIMessageCenter.h (modified) (1 diff)
-
notificationcenter/UINotificationObjects.cpp (modified) (1 diff)
-
notificationcenter/UINotificationObjects.h (modified) (1 diff)
-
widgets/UIAddDiskEncryptionPasswordDialog.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r91007 r91029 567 567 .arg(strKey, CMachine(machine).GetName(), strValue), 568 568 UIErrorString::formatErrorInfo(machine)); 569 }570 571 void UIMessageCenter::warnAboutInvalidEncryptionPassword(const QString &strPasswordId, QWidget *pParent /* = 0 */)572 {573 alert(pParent, MessageType_Error,574 tr("Encryption password for <nobr>ID = '%1'</nobr> is invalid.")575 .arg(strPasswordId));576 569 } 577 570 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r91007 r91029 271 271 void cannotSetExtraData(const CVirtualBox &vbox, const QString &strKey, const QString &strValue); 272 272 void cannotSetExtraData(const CMachine &machine, const QString &strKey, const QString &strValue); 273 void warnAboutInvalidEncryptionPassword(const QString &strPasswordId, QWidget *pParent = 0);274 273 void cannotAcquireVirtualBoxParameter(const CVirtualBox &comVBox, QWidget *pParent = 0) const; 275 274 void cannotAcquireSessionParameter(const CSession &comSession, QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r91007 r91029 86 86 "This is currently not possible because the guest does not support " 87 87 "software shutdown.")); 88 } 89 90 /* static */ 91 void UINotificationMessage::warnAboutInvalidEncryptionPassword(const QString &strPasswordId) 92 { 93 createMessage( 94 QApplication::translate("UIMessageCenter", "Invalid Password ..."), 95 QApplication::translate("UIMessageCenter", "Encryption password for <nobr>ID = '%1'</nobr> is invalid.") 96 .arg(strPasswordId)); 88 97 } 89 98 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r91007 r91029 69 69 /** Notifies about inability to send ACPI shutdown. */ 70 70 static void cannotSendACPIToMachine(); 71 /** Notifies about invalid encryption password. 72 * @param strPasswordId Brings password ID. */ 73 static void warnAboutInvalidEncryptionPassword(const QString &strPasswordId); 71 74 72 75 /** Reminds about keyboard auto capturing. */ -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIAddDiskEncryptionPasswordDialog.cpp
r82968 r91029 35 35 #include "UIIconPool.h" 36 36 #include "UIMedium.h" 37 #include "UI MessageCenter.h"37 #include "UINotificationCenter.h" 38 38 39 39 /* Other VBox includes: */ … … 509 509 if (!isPasswordValid(uMediumId, strPassword)) 510 510 { 511 msgCenter().warnAboutInvalidEncryptionPassword(strPasswordId, this);511 UINotificationMessage::warnAboutInvalidEncryptionPassword(strPasswordId); 512 512 AssertPtrReturnVoid(m_pTableEncryptionData); 513 513 m_pTableEncryptionData->setFocus();
Note:
See TracChangeset
for help on using the changeset viewer.

