Commit c7491770 authored by Volker Krause's avatar Volker Krause
Browse files

Ignore the import size limit for our own exports

Since they contain attached documents as well, they can easily exceed the
4MB limit.
parent 63dd1bbe
......@@ -314,7 +314,7 @@ void ApplicationController::importLocalFile(const QUrl &url)
qCWarning(Log) << "Failed to open" << f.fileName() << f.errorString();
return;
}
if (f.size() > 4000000) {
if (f.size() > 4000000 && !f.fileName().endsWith(QLatin1String(".itinerary"))) {
qCWarning(Log) << "File too large, ignoring" << f.fileName() << f.size();
return;
}
......
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