-rw-r--r-- | noncore/settings/networksettings2/networksettings2/netnode.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/noncore/settings/networksettings2/networksettings2/netnode.cpp b/noncore/settings/networksettings2/networksettings2/netnode.cpp index 4a2440a..110786a 100644 --- a/noncore/settings/networksettings2/networksettings2/netnode.cpp +++ b/noncore/settings/networksettings2/networksettings2/netnode.cpp @@ -1,4 +1,7 @@ #include <time.h> #include <qpe/qpeapplication.h> +#include <qpe/resource.h> + + #include <qpainter.h> #include <qbitmap.h> @@ -254,4 +257,7 @@ QPixmap NodeCollection::devicePixmap( void ) { QPixmap Mini = NSResources->getPixmap( device()->netNode()->pixmapName() ); + if( pm.isNull() || Mini.isNull() ) + return Resource::loadPixmap("Unknown"); + QPainter painter( &pm ); painter.drawPixmap( pm.width()-Mini.width(), |