[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdebase/workspace/plasma/shells/mid
From:       Laurent Montel <montel () kde ! org>
Date:       2008-08-25 7:45:25
Message-ID: 1219650325.247054.30163.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 852050 by mlaurent:

Don't crash when option is not specify


 M  +1 -1      midcorona.cpp  


--- trunk/KDE/kdebase/workspace/plasma/shells/mid/midcorona.cpp #852049:852050
@@ -104,7 +104,7 @@
 
     if (isDesktop) {
         c->setScreen(0);
-    } else {
+    } else if( (args->count() > 0) && (args->isSet("height")) && (args->isSet("width")) ){
         int width = qMax(400, args->getOption("width").toInt());
         int height = qMax(200, args->getOption("height").toInt());
         c->resize(width, height);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic