Close the detail window if it's still open.
Adrian L Lange [02-05-12 - 14:41]
Close the detail window if it's still open.
Occurs with some low level quests.
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()