Commit 0636d6f1 authored by Amyspark's avatar Amyspark Committed by Halla Rempt
Browse files

Make SeExpr script thumbnails optional



BUG: 442096
Co-authored-by: Halla Rempt's avatarHalla Rempt <halla@valdyas.org>
parent 1eb08bff
Pipeline #79406 skipped with stage
......@@ -151,7 +151,9 @@ void KisWdgSeExprPresetsSave::savePreset()
}
newPreset->setFilename(presetFileName);
newPreset->setName(presetName);
newPreset->setImage(presetThumbnailWidget->pixmap()->toImage());
if (presetThumbnailWidget->pixmap()) {
newPreset->setImage(presetThumbnailWidget->pixmap()->toImage());
}
newPreset->setScript(m_currentConfiguration->getString("script"));
newPreset->setDirty(false);
newPreset->setValid(true);
......@@ -163,7 +165,7 @@ void KisWdgSeExprPresetsSave::savePreset()
} else { // saving a preset that is replacing an existing one
curPreset->setName(presetName);
if (curPreset->image().isNull()) {
if (curPreset->image().isNull() && presetThumbnailWidget->pixmap()) {
curPreset->setImage(presetThumbnailWidget->pixmap()->toImage());
}
......
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