-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,5 +1,8 @@ | |||
1 | #include <time.h> | 1 | #include <time.h> |
2 | #include <qpe/qpeapplication.h> | 2 | #include <qpe/qpeapplication.h> |
3 | #include <qpe/resource.h> | ||
4 | |||
5 | |||
3 | #include <qpainter.h> | 6 | #include <qpainter.h> |
4 | #include <qbitmap.h> | 7 | #include <qbitmap.h> |
5 | #include <qtextstream.h> | 8 | #include <qtextstream.h> |
@@ -253,6 +256,9 @@ QPixmap NodeCollection::devicePixmap( void ) { | |||
253 | 256 | ||
254 | QPixmap Mini = NSResources->getPixmap( device()->netNode()->pixmapName() ); | 257 | QPixmap Mini = NSResources->getPixmap( device()->netNode()->pixmapName() ); |
255 | 258 | ||
259 | if( pm.isNull() || Mini.isNull() ) | ||
260 | return Resource::loadPixmap("Unknown"); | ||
261 | |||
256 | QPainter painter( &pm ); | 262 | QPainter painter( &pm ); |
257 | painter.drawPixmap( pm.width()-Mini.width(), | 263 | painter.drawPixmap( pm.width()-Mini.width(), |
258 | pm.height()-Mini.height(), | 264 | pm.height()-Mini.height(), |