Changeset 43128 in vbox
- Timestamp:
- Aug 30, 2012 7:30:59 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 80494
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.cpp
r36589 r43128 25 25 26 26 /* Machine state => Settings dialog type converter: */ 27 SettingsDialogType UISettingsDefs:: machineStateToSettingsDialogType(KMachineState machineState)27 SettingsDialogType UISettingsDefs::determineSettingsDialogType(KSessionState sessionState, KMachineState machineState) 28 28 { 29 29 SettingsDialogType result = SettingsDialogType_Wrong; … … 33 33 case KMachineState_Teleported: 34 34 case KMachineState_Aborted: 35 result = SettingsDialogType_Offline; 35 result = sessionState == KSessionState_Unlocked ? SettingsDialogType_Offline : 36 SettingsDialogType_Online; 36 37 break; 37 38 case KMachineState_Saved: -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDefs.h
r41587 r43128 40 40 41 41 /* Machine state => Settings dialog type converter: */ 42 SettingsDialogType machineStateToSettingsDialogType(KMachineState machineState);42 SettingsDialogType determineSettingsDialogType(KSessionState sessionState, KMachineState machineState); 43 43 } 44 44 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialogSpecific.cpp
r42526 r43128 570 570 AssertMsg(!m_machine.isNull(), ("Can't find corresponding machine!\n")); 571 571 /* Assign current dialog type: */ 572 setDialogType( machineStateToSettingsDialogType(m_machine.GetState()));572 setDialogType(determineSettingsDialogType(m_machine.GetSessionState(), m_machine.GetState())); 573 573 574 574 /* Creating settings pages: */ … … 1020 1020 1021 1021 /* Get new dialog type: */ 1022 SettingsDialogType newDialogType = machineStateToSettingsDialogType(m_machineState);1022 SettingsDialogType newDialogType = determineSettingsDialogType(m_machine.GetSessionState(), m_machineState); 1023 1023 1024 1024 /* Ignore if dialog type was NOT actually changed: */
Note:
See TracChangeset
for help on using the changeset viewer.