VirtualBox

Changeset 83526 in vbox for trunk/src


Ignore:
Timestamp:
Apr 3, 2020 1:24:55 PM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9669: UIMessageCenter: Preserve wrapper's lastRC for passing to UIErrorString::formatErrorInfo by copying wrapper when necessary to call for another getter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r83212 r83526  
    843843    error(0, MessageType_Error,
    844844          tr("Failed to discard the saved state of the virtual machine <b>%1</b>.")
    845              .arg(machine.GetName()),
     845             .arg(CMachine(machine).GetName()),
    846846          UIErrorString::formatErrorInfo(machine));
    847847}
     
    851851    error(0, MessageType_Error,
    852852          tr("Failed to save the state of the virtual machine <b>%1</b>.")
    853              .arg(machine.GetName()),
     853             .arg(CMachine(machine).GetName()),
    854854          UIErrorString::formatErrorInfo(machine));
    855855}
     
    12391239    error(pParent, MessageType_Error,
    12401240          tr("Failed to change the attribute of the virtual machine <b>%1</b>.")
    1241              .arg(comMachine.GetName()),
     1241             .arg(CMachine(comMachine).GetName()),
    12421242          UIErrorString::formatErrorInfo(comMachine));
    12431243}
     
    12471247    error(pParent, MessageType_Error,
    12481248          tr("Failed to save the settings of the virtual machine <b>%1</b> to <b><nobr>%2</nobr></b>.")
    1249              .arg(machine.GetName(), CMachine(machine).GetSettingsFilePath()),
     1249             .arg(CMachine(machine).GetName(), CMachine(machine).GetSettingsFilePath()),
    12501250          UIErrorString::formatErrorInfo(machine));
    12511251}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette