]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/menu/menu.qc
Hide the menu when closing the Quit dialog while connected
[xonotic/xonotic-data.pk3dir.git] / qcsrc / menu / menu.qc
index aaa33b137b8ecdcd14fc61d86ec85c7a30c0253b..f0e6646ca93d7115063ea9d36018565271229ad3 100644 (file)
@@ -977,6 +977,8 @@ void m_goto(string itemname)
 
                if ((e) && (!e.requiresConnection || (gamestatus & (GAME_ISSERVER | GAME_CONNECTED))))
                {
+                       if(!Menu_Active)
+                               e.hideMenuOnClose = true;
                        m_hide();
                        m_activate_window(e);
                        m_setpointerfocus(e);