From 15abdc3ac4e7406d15a8a59f43b3ae669099074a Mon Sep 17 00:00:00 2001 From: alwin Date: Wed, 21 Apr 2004 22:57:53 +0000 Subject: fixed a possible crasher --- diff --git a/noncore/graphics/opie-eye/slave/png_slave.cpp b/noncore/graphics/opie-eye/slave/png_slave.cpp index 86e1cdc..21555b4 100644 --- a/noncore/graphics/opie-eye/slave/png_slave.cpp +++ b/noncore/graphics/opie-eye/slave/png_slave.cpp @@ -66,7 +66,8 @@ static const char* interlaceModes[] = { static void read_comment( const QString& inf, bool readComments, QString& str ) { QFile f(inf); - f.open(IO_ReadOnly); + if (!f.exists()) return; + if (!f.open(IO_ReadOnly)) return; if (f.size() < 26) return; // the technical group will be read from the first 26 bytes. If the file -- cgit v0.9.0.2