From: terencehill Date: Wed, 2 Jun 2021 14:26:33 +0000 (+0200) Subject: Fix the quit dialogue reappearing after pressing the quit game button X-Git-Tag: xonotic-v0.8.5~129^2~13 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b441241cd6ac22018f6cd96f35493401adeeff73;p=xonotic%2Fxonotic-data.pk3dir.git Fix the quit dialogue reappearing after pressing the quit game button --- 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)