Commit 2db589ab authored by Halla Rempt's avatar Halla Rempt

Don't crash if there's no filter

parent d5ebaee1
......@@ -172,7 +172,9 @@ KisImportExportFilter *KisImportExportManager::filterForMimeType(const QString &
}
}
qDeleteAll(list);
filter->setMimeType(mimetype);
if (filter) {
filter->setMimeType(mimetype);
}
return filter;
}
......
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