Changeset 46898 in vbox
- Timestamp:
- Jul 2, 2013 10:59:16 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/converter/UIConverterBackendGlobal.cpp
r46796 r46898 565 565 switch (machineCloseAction) 566 566 { 567 case MachineCloseAction_Save : strResult = "Save"; break;567 case MachineCloseAction_SaveState: strResult = "SaveState"; break; 568 568 case MachineCloseAction_Shutdown: strResult = "Shutdown"; break; 569 569 case MachineCloseAction_PowerOff: strResult = "PowerOff"; break; … … 584 584 * to search through the keys using 'case-insensitive' rule: */ 585 585 QStringList keys; QList<MachineCloseAction> values; 586 keys << "Save "; values << MachineCloseAction_Save;586 keys << "SaveState"; values << MachineCloseAction_SaveState; 587 587 keys << "Shutdown"; values << MachineCloseAction_Shutdown; 588 588 keys << "PowerOff"; values << MachineCloseAction_PowerOff; -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIDefs.h
r46797 r46898 318 318 { 319 319 MachineCloseAction_Invalid, 320 MachineCloseAction_Save ,320 MachineCloseAction_SaveState, 321 321 MachineCloseAction_Shutdown, 322 322 MachineCloseAction_PowerOff, -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r46704 r46898 328 328 switch (closeAction) 329 329 { 330 case MachineCloseAction_Save :330 case MachineCloseAction_SaveState: 331 331 { 332 332 /* Save VM state: */ -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIVMCloseDialog.cpp
r46708 r46898 72 72 /* Calculate result: */ 73 73 if (m_pSaveRadio->isChecked()) 74 setResult(MachineCloseAction_Save );74 setResult(MachineCloseAction_SaveState); 75 75 else if (m_pShutdownRadio->isChecked()) 76 76 setResult(MachineCloseAction_Shutdown); … … 282 282 /* Check which close-actions are resticted: */ 283 283 QList<MachineCloseAction> restictedCloseActions = vboxGlobal().restrictedMachineCloseActions(m_machine); 284 bool fIsStateSavingAllowed = !restictedCloseActions.contains(MachineCloseAction_Save );284 bool fIsStateSavingAllowed = !restictedCloseActions.contains(MachineCloseAction_SaveState); 285 285 bool fIsACPIShutdownAllowed = !restictedCloseActions.contains(MachineCloseAction_Shutdown); 286 286 bool fIsPowerOffAllowed = !restictedCloseActions.contains(MachineCloseAction_PowerOff); … … 308 308 /* If choosing 'last choice' is possible: */ 309 309 m_lastCloseAction = gpConverter->fromInternalString<MachineCloseAction>(m_machine.GetExtraData(GUI_LastCloseAction)); 310 if (m_lastCloseAction == MachineCloseAction_Save && fIsStateSavingAllowed)310 if (m_lastCloseAction == MachineCloseAction_SaveState && fIsStateSavingAllowed) 311 311 { 312 312 pRadioButtonToChoose = m_pSaveRadio;
Note:
See TracChangeset
for help on using the changeset viewer.