- Timestamp:
- Feb 27, 2010 12:02:09 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r26878 r26882 142 142 } 143 143 144 /* Get machine state: */ 145 KMachineState state = uisession()->machineState(); 146 147 switch (state) 144 switch (uisession()->machineState()) 148 145 { 149 146 case KMachineState_PoweredOff: … … 175 172 bool success = true; 176 173 177 bool wasPaused = uisession()->isPaused() || state== KMachineState_Stuck;174 bool wasPaused = uisession()->isPaused() || uisession()->machineState() == KMachineState_Stuck; 178 175 if (!wasPaused) 179 176 { … … 197 194 dlg.mCbDiscardCurState->setText(dlg.mCbDiscardCurState->text().arg(machine.GetCurrentSnapshot().GetName())); 198 195 199 if ( state!= KMachineState_Stuck)196 if (uisession()->machineState() != KMachineState_Stuck) 200 197 { 201 198 /* Read the last user's choice for the given VM */ … … 342 339 machineLogic()->setPreventAutoClose(false); 343 340 344 if ( state== KMachineState_PoweredOff ||345 state== KMachineState_Saved ||346 state== KMachineState_Teleported ||347 state== KMachineState_Aborted)341 if (uisession()->machineState() == KMachineState_PoweredOff || 342 uisession()->machineState() == KMachineState_Saved || 343 uisession()->machineState() == KMachineState_Teleported || 344 uisession()->machineState() == KMachineState_Aborted) 348 345 { 349 346 /* The machine has been stopped while showing the Close or the Pause … … 356 353 { 357 354 /* Restore the running state if needed */ 358 if (!wasPaused && state== KMachineState_Paused)355 if (!wasPaused && uisession()->machineState() == KMachineState_Paused) 359 356 uisession()->unpause(); 360 357 }
Note:
See TracChangeset
for help on using the changeset viewer.