Commit 65074c27 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Also obey batchmode when loading a document from libkis

BUG:394261
Patch by Jeroen Hoolmans, thanks!
parent 5bee9154
...@@ -331,8 +331,10 @@ Document* Krita::createDocument(int width, int height, const QString &name, cons ...@@ -331,8 +331,10 @@ Document* Krita::createDocument(int width, int height, const QString &name, cons
Document* Krita::openDocument(const QString &filename) Document* Krita::openDocument(const QString &filename)
{ {
KisDocument *document = KisPart::instance()->createDocument(); KisDocument *document = KisPart::instance()->createDocument();
document->setFileBatchMode(this->batchmode());
KisPart::instance()->addDocument(document); KisPart::instance()->addDocument(document);
document->openUrl(QUrl::fromLocalFile(filename), KisDocument::DontAddToRecent); document->openUrl(QUrl::fromLocalFile(filename), KisDocument::DontAddToRecent);
document->setFileBatchMode(false);
return new Document(document); return new Document(document);
} }
......
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