[graphics/krita] libs/ui: Don't show data loss warnings when exporting
Dmitry Kazakov <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit b0e32a844c931083c6920ebebb3227a2dd6f5984 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 07/08/2026 at 12:01.
Pushed by dkazakov into branch 'master'.
Don't show data loss warnings when exporting
They only make sense when saving the image, not when exporting it. This
turns off the warnings in the latter case.
M +1 -1 libs/ui/KisMainWindow.cpp
https://invent.kde.org/graphics/krita/-/commit/b0e32a844c931083c6920ebebb3227a2dd6f5984
diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index bbf49728f3e..b208ef1b214 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -1502,7 +1502,7 @@ bool KisMainWindow::saveDocument(KisDocument *document, bool saveas, bool isExpo
}
}
else { // Export
- ret = document->exportDocument(newFilePath, outputFormat, isAdvancedExporting, true);
+ ret = document->exportDocument(newFilePath, outputFormat, isAdvancedExporting, false);
if (ret) {
d->lastExportLocation = newFilePath;
d->lastExportedFormat = outputFormat;