Commit 555cc259 authored by Laurent Montel's avatar Laurent Montel
Browse files

check if we can open file



Change-Id: I1006f749007c91e93326852c619ddbf8447cfd7e
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@digia.com>
parent f77c121a
......@@ -420,7 +420,8 @@ static inline bool parseSciFile(const QString &fileName, QString &pixmapFileName
QString imgFile;
QFile data(fileName);
data.open(QIODevice::ReadOnly);
if (!data.open(QIODevice::ReadOnly))
return false;
QByteArray raw;
while (raw = data.readLine(), !raw.isEmpty()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment