- Timestamp:
- Aug 25, 2021 4:46:48 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r90889 r90890 385 385 } 386 386 #endif /* VBOX_WS_MAC */ 387 388 void UIMachineLogic::shutdown()389 {390 /* Warn the user about ACPI is not available if so: */391 if (!console().GetGuestEnteredACPIMode())392 return UINotificationMessage::cannotSendACPIToMachine();393 394 /* Shutdown: */395 uisession()->shutdown();396 }397 387 398 388 void UIMachineLogic::powerOff(bool fDiscardingState) … … 1881 1871 1882 1872 LogRel(("GUI: User requested to shutdown VM.\n")); 1883 shutdown();1873 uisession()->shutdown(); 1884 1874 } 1885 1875 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r90889 r90890 143 143 #endif /* VBOX_WS_MAC */ 144 144 145 /** Call for guest shutdown to close Runtime UI. */146 void shutdown();147 145 /** Power off VM, then close Runtime UI. */ 148 146 void powerOff(bool fDiscardingState); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineWindow.cpp
r90889 r90890 462 462 /* Shutdown VM: */ 463 463 LogRel(("GUI: Request for close-action to shutdown VM.\n")); 464 machineLogic()->shutdown();464 uisession()->shutdown(); 465 465 break; 466 466 } -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp
r90889 r90890 356 356 } 357 357 358 bool UISession::shutdown() 359 { 358 void UISession::shutdown() 359 { 360 /* Warn the user about ACPI is not available if so: */ 361 if (!console().GetGuestEnteredACPIMode()) 362 return UINotificationMessage::cannotSendACPIToMachine(); 363 360 364 /* Send ACPI shutdown signal if possible: */ 365 LogRel(("GUI: Sending ACPI shutdown signal..\n")); 361 366 console().PowerButton(); 362 367 if (!console().isOk()) 363 {364 /* Failed in console: */365 368 msgCenter().cannotACPIShutdownMachine(console()); 366 return false;367 }368 /* Passed: */369 return true;370 369 } 371 370 -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.h
r90889 r90890 82 82 void saveState(); 83 83 /** Calls for guest shutdown to close Runtime UI. */ 84 boolshutdown();84 void shutdown(); 85 85 /** Powers VM down, then closes Runtime UI. */ 86 86 bool powerOff(bool fIncludingDiscard, bool &fServerCrashed);
Note:
See TracChangeset
for help on using the changeset viewer.