Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

KisPaletteEditor: set storage location on palette change

Mike Will930c9b14770c
diff --git a/libs/ui/KisPaletteEditor.cpp b/libs/ui/KisPaletteEditor.cpp
index 82e854f499..5973a5c20e 100644
--- a/libs/ui/KisPaletteEditor.cpp
+++ b/libs/ui/KisPaletteEditor.cpp
@@ -609,6 +609,9 @@ void KisPaletteEditor::slotPaletteChanged()
{
Q_ASSERT(m_d->model);
clearStagedChanges();
+
+ const KoColorSetSP colorSet = m_d->model->colorSet();
+ m_d->modifiedPaletteInfo.storageLocation = colorSet ? colorSet->storageLocation() : "";
}
QString KisPaletteEditor::newGroupName() const