From da9459d009c36b4dec1f36bb0cd2b1f340548331 Mon Sep 17 00:00:00 2001 From: Giulio Camuffo Date: Sun, 17 Oct 2010 21:54:40 +0000 Subject: [PATCH] start always with a default size, otherwise if an applet doesn't resize itself it will freeze plasma svn path=/trunk/KDE/kdelibs/; revision=1186915 --- applet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index 67a130563..fe9492689 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2577,7 +2577,10 @@ void AppletPrivate::init(const QString &packagePath) return; } - size = appletDescription.property("X-Plasma-DefaultSize").toSize(); + QVariant s = appletDescription.property("X-Plasma-DefaultSize"); + if (s.isValid()) { + size = s.toSize(); + } //kDebug() << "size" << size; q->resize(size);