From ffa383da10a1d7b7f676ef153fd5831e8cc61fcc Mon Sep 17 00:00:00 2001 From: shagu Date: Sun, 12 Apr 2020 02:04:14 +0200 Subject: [PATCH] thirdparty: abort on empty wim frames --- modules/thirdparty-vanilla.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/thirdparty-vanilla.lua b/modules/thirdparty-vanilla.lua index daca55a5..a176a095 100644 --- a/modules/thirdparty-vanilla.lua +++ b/modules/thirdparty-vanilla.lua @@ -547,9 +547,12 @@ pfUI:RegisterModule("thirdparty-vanilla", "vanilla", function() -- wrap SkinCheckbox to fix issues with scrollframe breaking layers local SkinScrollchildCheckbox = function(f, s) + if not f then return end SkinCheckbox(f, s) - f.backdrop:SetParent(f:GetParent()) - f:SetParent(f.backdrop) + if f:GetParent() ~= f.backdrop and f:GetParent() ~= f then + f.backdrop:SetParent(f:GetParent()) + f:SetParent(f.backdrop) + end end do -- general tab SkinTab(WIM_OptionsOptionTab1)