From 744f3ef721c373c2a05712db938d30728f702fd9 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 8 Jan 2009 11:28:58 +0000 Subject: [PATCH] avoid tons of warnings for empty sizes svn path=/trunk/KDE/kdelibs/; revision=907537 --- extenderitem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extenderitem.cpp b/extenderitem.cpp index 224e5169d..bc226bae2 100644 --- a/extenderitem.cpp +++ b/extenderitem.cpp @@ -1049,7 +1049,8 @@ void ExtenderItemPrivate::themeChanged() //setCollapsed recalculates size hints. q->setCollapsed(q->isCollapsed()); - resizeContent(q->size()); + if (!q->size().isEmpty()) + resizeContent(q->size()); } void ExtenderItemPrivate::sourceAppletRemoved()