backport of r908661:

apparently it's bad to compare to QSize()

svn path=/branches/KDE/4.2/kdelibs/; revision=908662
This commit is contained in:
Chani Armitage 2009-01-10 04:19:35 +00:00
parent 5fc144ba9a
commit d33c5b5d75

View File

@ -1945,7 +1945,7 @@ void AppletPrivate::setupScriptSupport()
//set a default size before any saved settings are read //set a default size before any saved settings are read
QSize size = appletDescription.property("X-Plasma-DefaultSize").toSize(); QSize size = appletDescription.property("X-Plasma-DefaultSize").toSize();
if (size == QSize()) { if (size.isEmpty()) {
size = QSize(200,200); size = QSize(200,200);
} }
//kDebug() << "size" << size; //kDebug() << "size" << size;