Commit 5b7772de authored by Halla Rempt's avatar Halla Rempt

Create the resource bundle on import

This adds the contained resources correctly.
parent 293ec4b6
......@@ -191,13 +191,20 @@ void ResourceManager::slotImport()
}
else if (resourceType == "bundles") {
foreach(const QString &res, resources) {
d->bundleServer->importResourceFile(res);
ResourceBundle *bundle = d->bundleServer->resourceByFilename(QFileInfo(res).fileName());
if (bundle) {
ResourceBundle *bundle = new ResourceBundle(res);
bundle->load();
if (bundle->valid()) {
if (!bundle->install()) {
QMessageBox::warning(0, "Krita", i18n("Could not install the resources for bundle %1.").arg(res));
}
}
else {
QMessageBox::warning(0, "Krita", i18n("Could not load bundle %1.").arg(res));
}
delete bundle;
//d->bundleServer->importResourceFile(res);
}
}
else if (resourceType == "patterns") {
......
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