Commit ca999877 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Don't try to parse file when it doesn't exist

parent 24e6fcc5
......@@ -554,8 +554,12 @@ bool KTNEFParser::openFile(const QString &filename) const
delete d->message_;
d->message_ = new KTNEFMessage();
d->device_ = new QFile(filename);
QFile *file = new QFile(filename);
d->device_ = file;
d->deleteDevice_ = true;
if (!file->exists()) {
return false;
return d->parseDevice();
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