Ticket #3418 (closed enhancement: fixed)
Addition of GUI/ForceCloseAction extradata item
|Reported by:||TerryE||Owned by:|
See Forum topic graceful shutdown from linux host for the background to this one. The user like a few others in the past have felt that a nice feature to add to the GUI interface would be the ability to force a response avoiding the "Close Virtual Machine" dialogue (typically in the case to savestate). This would simplify logoff and shutdown integration of GUI based VMs running on the desktop. Looking at src/VBox/Frontends/VirtualBox4/src/VBoxConsoleWnd.cpp, this would be a fairly simple change to the logic of VBoxConsoleWnd::closeEvent to add a call to cmachine.GetExtraData for the new parameter and short-circuit logic to bypass display of VBoxCloseVMDlg and process the action immediately.