From ec828ec2631c69f90df42031cffe64f492cf5003 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Tue, 19 Jan 2016 19:25:24 +0100 Subject: [PATCH] Fix: On resource wasting, auto run is suspended --- MissionCompletion.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/MissionCompletion.lua b/MissionCompletion.lua index f498237..fdc0932 100644 --- a/MissionCompletion.lua +++ b/MissionCompletion.lua @@ -151,16 +151,18 @@ function module:MissionComplete(this,button,skiprescheck) end end if stop and not skiprescheck then + local wasquick=ns.quick + ns.quick=false self:Popup(message.."\n" ..format(L["If you %s, you will loose them\nClick on %s to abort"],ACCEPT,CANCEL),0, function() + ns.quick=wasquick module:MissionComplete(this,button,true) + if ns.quick then addon:RunQuick() end end, function() this:SetEnabled(true) missionsFrame.CompleteDialog.BorderFrame.ViewButton:SetEnabled(true) panel:Hide() - ns.quick=false - end ) return -- 1.7.9.5