[graphics/krita/krita/6.0] 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 924fabf315c37be5029a6b2c887f8bd1f5d7ec26 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 07/08/2026 at 12:02.
Pushed by dkazakov into branch 'krita/6.0'.

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/924fabf315c37be5029a6b2c887f8bd1f5d7ec26

diff --git a/libs/ui/KisMainWindow.cpp b/libs/ui/KisMainWindow.cpp
index 7875fb45bc4..c45cad2d896 100644
--- a/libs/ui/KisMainWindow.cpp
+++ b/libs/ui/KisMainWindow.cpp
@@ -1501,7 +1501,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;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.