Commit 855df69d authored by Halla Rempt's avatar Halla Rempt

Only save the config if the dialog was shown.

parent 04deb9e2
......@@ -126,13 +126,12 @@ KisImportExportFilter::ConversionStatus KisHeightMapExport::convert(const QByteA
if (kdb.exec() == QDialog::Rejected) {
return KisImportExportFilter::UserCancelled;
}
cfg = wdg->configuration();
KisConfig().setExportConfiguration("HeightMap", *cfg.data());
}
cfg = wdg->configuration();
QDataStream::ByteOrder bo = cfg->getInt("endianness", 0) ? QDataStream::BigEndian : QDataStream::LittleEndian;
KisConfig().setExportConfiguration("HeightMap", *cfg.data());
bool downscale = false;
if (to == "image/x-r8" && image->colorSpace()->colorDepthId() == Integer16BitsColorDepthID) {
......
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