From e2e6091c1f7e39289f359cb85e8bee6275f1c947 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Fri, 24 Jul 2015 17:55:33 +0100 Subject: [PATCH] Close dialogs before open --- addons/spectator/functions/fnc_handleInterface.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/spectator/functions/fnc_handleInterface.sqf b/addons/spectator/functions/fnc_handleInterface.sqf index 5730ee7dba..cb0c396393 100644 --- a/addons/spectator/functions/fnc_handleInterface.sqf +++ b/addons/spectator/functions/fnc_handleInterface.sqf @@ -40,6 +40,11 @@ switch (toLower _mode) do { GVAR(camera) = "Camera" camCreate (ASLtoATL GVAR(camPos)); [] call FUNC(transitionCamera); + // Close all existing dialogs + while {dialog} do { + closeDialog 0; + }; + // Create the dialog createDialog QGVAR(interface);