author | zecke <zecke> | 2004-09-27 21:44:42 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-27 21:44:42 (UTC) |
commit | 9c8f2e26e05be9230ed960d4b4ed21dc658df33e (patch) (side-by-side diff) | |
tree | f0c16477d1d25374fb0a983da786ef96839e7db5 | |
parent | ba463a1029d1c0ff553a3dc9bf544617289d95f0 (diff) | |
download | opie-9c8f2e26e05be9230ed960d4b4ed21dc658df33e.zip opie-9c8f2e26e05be9230ed960d4b4ed21dc658df33e.tar.gz opie-9c8f2e26e05be9230ed960d4b4ed21dc658df33e.tar.bz2 |
Do not crash due an empty image
-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 @@ -2,2 +2,5 @@ #include <qpe/qpeapplication.h> +#include <qpe/resource.h> + + #include <qpainter.h> @@ -255,2 +258,5 @@ QPixmap NodeCollection::devicePixmap( void ) { + if( pm.isNull() || Mini.isNull() ) + return Resource::loadPixmap("Unknown"); + QPainter painter( &pm ); |