From d9ca2d52175f1091e2c6747248330ffd8a0f2c9b Mon Sep 17 00:00:00 2001 From: Adrian L Lange Date: Sun, 5 Feb 2012 15:41:27 +0100 Subject: [PATCH] Close the detail window if it's still open. Occurs with some low level quests. --- Monomyth.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Monomyth.lua b/Monomyth.lua index 80cb5ca..8d01436 100644 --- a/Monomyth.lua +++ b/Monomyth.lua @@ -66,7 +66,11 @@ end) QuestFrame:UnregisterEvent('QUEST_DETAIL') Monomyth:Register('QUEST_DETAIL', function() if(QuestGetAutoAccept()) then - CloseQuest() + if(GossipFrame:IsShown()) then + HideUIPanel(GossipFrame) + else + CloseQuest() + end else QuestFrame_OnEvent(nil, 'QUEST_DETAIL') AcceptQuest() -- 1.7.9.5