summaryrefslogtreecommitdiff
path: root/noncore/graphics/opie-eye
Side-by-side diff
Diffstat (limited to 'noncore/graphics/opie-eye') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/opie-eye/slave/png_slave.cpp3
1 files changed, 2 insertions, 1 deletions
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
@@ -63,13 +63,14 @@ 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
// is smaller, we can't even read this.
uchar *data = new uchar[f.size()+1];