- fixed an error popping up whenever a user had icehud disabled in its settings and tried to access the config page

This commit is contained in:
Parnic
2010-11-04 17:56:18 +00:00
parent 6e46c2b3f4
commit 067096b51f
2 changed files with 5 additions and 4 deletions

View File

@ -251,10 +251,11 @@ function IceHUD:OnEnable(isFirst)
if LibDualSpec then
LibDualSpec:EnhanceDatabase(self.db, "IceHUD")
end
end
--@debug@
IceHUD_Options:OnLoad()
--@end-debug@
end
if isFirst then
self:SetDebugging(self.IceCore:GetDebug())

View File

@ -653,7 +653,7 @@ function IceHUD_Options:OnLoad()
self.options.args.profiles = LibStub("AceDBOptions-3.0"):GetOptionsTable(IceHUD.db)
-- Add dual-spec support
if LibDualSpec then
if IceHUD.db.profile.enable and LibDualSpec then
LibDualSpec:EnhanceOptions(IceHUD_Options.options.args.profiles, IceHUD.db)
end