From 5916be505f92d68eb46529b340719ea91b25337b Mon Sep 17 00:00:00 2001 From: Xurkon Date: Fri, 20 Mar 2026 22:49:03 -0500 Subject: [PATCH] debug: Add print to QuestLogTitleButton_OnClick hook --- Modules/QuestLinks/Hooks.lua | 5 ++++- Modules/Tracker/TrackerLinePool.lua | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/QuestLinks/Hooks.lua b/Modules/QuestLinks/Hooks.lua index 9c33dbc..c01ec0d 100644 --- a/Modules/QuestLinks/Hooks.lua +++ b/Modules/QuestLinks/Hooks.lua @@ -19,6 +19,7 @@ function Hooks:HookQuestLogTitle() -- FIX: Added InCombatLockdown guard to prevent tainting secure execution paths. -- This hook can be called during combat if the player interacts with the quest log -- while in combat, which may cause taint that propagates to protected functions. + print("[DEBUG] QuestLogTitleButton_OnClick hook! button=" .. tostring(button) .. " shift=" .. tostring(IsShiftKeyDown())) if InCombatLockdown() then return end if (not self) or self.isHeader then return @@ -46,7 +47,9 @@ function Hooks:HookQuestLogTitle() -- For all other clicks (including tracking/untracking), use the original function -- only call Questie's tracker if we actually want to fix this quest (normal quests already call AQW_insert) - if Questie.db.profile.trackerEnabled and GetNumQuestLeaderBoards(questLogLineIndex) == 0 then + -- Only handle tracking on shift-click for "Talk to" quests (no objectives) + if Questie.db.profile.trackerEnabled and GetNumQuestLeaderBoards(questLogLineIndex) == 0 and IsShiftKeyDown() then + print("[DEBUG] Hook tracking condition met for questId=", questId) local _, _, _, _, _, _, _, questId = GetQuestLogTitle(questLogLineIndex) if questId and questId > 0 then if Questie.db.char.TrackedQuests[questId] or (Questie.db.profile.autoTrackQuests and (not Questie.db.char.AutoUntrackedQuests[questId])) then diff --git a/Modules/Tracker/TrackerLinePool.lua b/Modules/Tracker/TrackerLinePool.lua index fb38fd1..3ecd9f6 100644 --- a/Modules/Tracker/TrackerLinePool.lua +++ b/Modules/Tracker/TrackerLinePool.lua @@ -158,6 +158,7 @@ function TrackerLinePool.Initialize(questFrame) -- TEST: Always capture clicks to debug line:SetScript("OnClick", function(self, button) + print("[DEBUG] TEST_OnClick FIRED! button=" .. tostring(button) .. " lineName=" .. self:GetName()) Questie:Debug(Questie.DEBUG_DEVELOP, "[TrackerLinePool:TEST_OnClick] button:", button, "Shift:", IsShiftKeyDown()) end)