Commit 786c5d4b authored by Halla Rempt's avatar Halla Rempt
Browse files

Show export dialogs in desktop mode.

parent ff7d4aad
......@@ -336,6 +336,10 @@ void MainWindow::switchToSketch()
QTimer::singleShot(50, this, SLOT(sketchChange()));
//qDebug() << "milliseconds to switch to sketch:" << timer.elapsed();
if (view && view->document()) {
view->document()->setSaveInBatchMode(true);
}
}
void MainWindow::sketchChange()
......@@ -415,6 +419,10 @@ void MainWindow::switchToDesktop(bool justLoaded)
d->switcher->setEnabled(true);
}
if (view && view->document()) {
view->document()->setSaveInBatchMode(false);
}
//qDebug() << "milliseconds to switch to desktop:" << timer.elapsed();
}
......
......@@ -121,7 +121,9 @@ void DocumentManager::delayedNewDocument()
{
d->document = new KisDoc2(part());
d->document->setProgressProxy(d->proxy);
d->document->setSaveInBatchMode(true);
if (qAppName().contains("sketch")) {
d->document->setSaveInBatchMode(true);
}
part()->setDocument(d->document);
if(d->newDocOptions.isEmpty())
......@@ -195,7 +197,9 @@ void DocumentManager::delayedOpenDocument()
{
d->document = new KisDoc2(part());
d->document->setProgressProxy(d->proxy);
d->document->setSaveInBatchMode(true);
if (qAppName().contains("sketch")) {
d->document->setSaveInBatchMode(true);
}
part()->setDocument(d->document);
d->document->setModified(false);
......
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