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++
Adobe Color Book: use title for the palette name
Halla Rempte20bb7a2ff61
diff --git a/libs/pigment/resources/KoColorSet.cpp b/libs/pigment/resources/KoColorSet.cppindex 5ddf264d5f..86ae2afcad 100644--- a/libs/pigment/resources/KoColorSet.cpp+++ b/libs/pigment/resources/KoColorSet.cpp@@ -2311,7 +2311,6 @@ bool KoColorSet::Private::loadAcb(){QFileInfo info(colorSet->filename());- colorSet->setName(info.completeBaseName());QBuffer buf(&data);buf.open(QBuffer::ReadOnly);@@ -2346,6 +2345,7 @@ bool KoColorSet::Private::loadAcb()metadata.append(metadataString);}QString title = metadata.at(0);+ colorSet->setName(title);QString prefix = metadata.at(1);QString postfix = metadata.at(2);QString description = metadata.at(3);diff --git a/libs/pigment/tests/TestKoColorSet.cpp b/libs/pigment/tests/TestKoColorSet.cppindex 1e1e9d3463..31df2e9d09 100644--- a/libs/pigment/tests/TestKoColorSet.cpp+++ b/libs/pigment/tests/TestKoColorSet.cpp@@ -261,6 +261,7 @@ void TestKoColorSet::testLoadACB()QCOMPARE(set.paletteType(), KoColorSet::ACB);QCOMPARE(set.colorCount(), 23);+ QCOMPARE(set.name(), "test");set.setFilename("test.acb");QVERIFY(set.save());