From b441241cd6ac22018f6cd96f35493401adeeff73 Mon Sep 17 00:00:00 2001 From: terencehill Date: Wed, 2 Jun 2021 16:26:33 +0200 Subject: [PATCH] Fix the quit dialogue reappearing after pressing the quit game button --- qcsrc/menu/xonotic/commandbutton.qc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/commandbutton.qc b/qcsrc/menu/xonotic/commandbutton.qc index fa15bdbbd..d7b491e8f 100644 --- a/qcsrc/menu/xonotic/commandbutton.qc +++ b/qcsrc/menu/xonotic/commandbutton.qc @@ -20,7 +20,7 @@ void XonoticCommandButton_Click(entity me, entity other) //if(me.flags & COMMANDBUTTON_REVERT) // loadAllCvars(me.parent); if(me.flags & COMMANDBUTTON_CLOSE) - m_goto(string_null); + me.parent.close(me.parent); } void XonoticCommandButton_configureXonoticCommandButton(entity me, string theText, vector theColor, string theCommand, int theFlags, string theTooltip) -- 2.39.2