# HG changeset patch # User Zerotorescue # Date 1296932517 -3600 # Node ID 5d6b3d116b80c7961db929eecedd7e3ed83a4d2f # Parent 5d13830e8b0d6bb184add3a84e5c174b0b4c85f8 Queueing without a profession open should no longer spam your chat window with ?No tradeskill window detected.? messages. diff -r 5d13830e8b0d -r 5d6b3d116b80 Modules/Queue.lua --- a/Modules/Queue.lua Sat Feb 05 20:01:30 2011 +0100 +++ b/Modules/Queue.lua Sat Feb 05 20:01:57 2011 +0100 @@ -419,6 +419,11 @@ -- Prepare a table with all possible tradeskill craftables local craftables = self:GetTradeskillCraftables(); + if not craftables then + addon:Print("No tradeskill window detected. Please open a profession before trying to queue.", addon.Colors.Red); + return; + end + -- Forget old queue twipe(queue); twipe(skipped); @@ -444,7 +449,7 @@ end if not craftables then - addon:Print("No tradeskill window detected.", addon.Colors.Red); + addon:Print("No tradeskill window detected. Please open a profession before trying to queue.", addon.Colors.Red); return; elseif not addon.db.profile.groups[groupName] then addon:Print(sformat("Tried to queue items from a group named \"%s\", but no such group exists.", groupName), addon.Colors.Red);