Commit 46da7713 authored by Halla Rempt's avatar Halla Rempt

Fix saving of patterns to the bundle

parent 5b7772de
......@@ -279,6 +279,7 @@ bool ResourceBundle::save()
if (!store || store->bad()) return false;
foreach(const QString &resType, m_manifest.types()) {
if (resType == "ko_gradients") {
KoResourceServer<KoAbstractGradient>* gradientServer = KoResourceServerProvider::instance()->gradientServer();
foreach(const ResourceBundleManifest::ResourceReference &ref, m_manifest.files(resType)) {
......
......@@ -266,7 +266,7 @@ void ResourceManager::slotCreateBundle()
res = dlgCreateBundle.selectedPatterns();
foreach(const QString &r, res) {
KoResource *res = d->patternServer->resourceByFilename(r);
newBundle->addResource("kis_patterns", res->filename(), d->patternServer->tagObject()->assignedTagsList(res), res->md5());
newBundle->addResource("ko_patterns", res->filename(), d->patternServer->tagObject()->assignedTagsList(res), res->md5());
}
res = dlgCreateBundle.selectedPresets();
......
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