From 6ba9f5238dd63c09bbb46c97742eb5648a63cf3f Mon Sep 17 00:00:00 2001 From: skyjake Date: Wed, 26 Jun 2013 18:14:16 +0300 Subject: [PATCH] Client|UI: "quit" command dismisses task bar The game is expected to handle the quit request, so the task bar must get out of the way. --- doomsday/client/src/con_main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doomsday/client/src/con_main.cpp b/doomsday/client/src/con_main.cpp index a7f7f570a2..a061d326b6 100644 --- a/doomsday/client/src/con_main.cpp +++ b/doomsday/client/src/con_main.cpp @@ -2306,6 +2306,12 @@ D_CMD(Quit) return true; // Never reached. } +#ifdef __CLIENT__ + // Dismiss the taskbar if it happens to be open, we are expecting + // the game to handle this from now on. + ClientWindow::main().taskBar().close(); +#endif + // Defer this decision to the loaded game. return gx.TryShutdown(); }