Compare with Previous | Blame | View Log
--[[-------------------------------------------------------------------- PhanxWatchFrame Copyright (c) 2009-2014 Phanx <addons@phanx.net>. All rights reserved. Please DO NOT upload this addon to other websites, or post modified versions of it. However, you are welcome to use any/all of its code in your own addon, as long as you do not use my name or the name of this addon ANYWHERE in your addon, including in its name, outside of an optional attribution. You are also welcome to include this addon WITHOUT CHANGES in compilations posted on Curse and/or WoWInterface. ----------------------------------------------------------------------]] hooksecurefunc("QuestLogTitleButton_OnClick", function(self) if IsModifiedClick() and self.isHeader then local index = self:GetID() local _, _, _, _, _, isCollapsed = GetQuestLogTitle(index) if isCollapsed then ExpandQuestHeader(index) end local tracked = IsQuestWatched(index + 1) for i = index + 1, GetNumQuestLogEntries() do local _, _, _, _, isHeader = GetQuestLogTitle(i) if isHeader then break elseif tracked then RemoveQuestWatch(i) else AddQuestWatch(i) end end QuestLog_Update() WatchFrame_Update() end end)