Commit 59eb6bb8 authored by Dmitry Kazakov's avatar Dmitry Kazakov
Browse files

Fix an assert when trying to export a palette

(it also fixes the code doing nothing for the bug reporter)

BUG:454949
parent 118bab30
Pipeline #203300 canceled with stage
in 36 minutes and 8 seconds
......@@ -219,7 +219,7 @@ void PaletteDockerDock::slotExportPalette(KoColorSetSP palette)
KoFileDialog dialog(this, KoFileDialog::SaveFile, "Save Palette");
dialog.setCaption(i18n("Export Palette"));
dialog.setDefaultDir(palette->filename());
dialog.setMimeTypeFilters(QStringList() << "krita/x-colorset");
dialog.setMimeTypeFilters(QStringList() << "application/x-krita-palette");
QString newPath;
QString oriPath = palette->filename();
if ((newPath = dialog.filename()).isEmpty()) { return; }
......
Supports Markdown
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