https://bugs.kde.org/show_bug.cgi?id=445408

Tiar <tamtamy.tym...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tamtamy.tym...@gmail.com

--- Comment #2 from Tiar <tamtamy.tym...@gmail.com> ---
dlg_create_bundle.cpp, line 271 or around that, instead of:

```
QString resourceTypeHere = "";
        QSharedPointer<KisResourceModel> resModel;
        for (int i = 0; i < resourceTypes.size(); i++) {
            res = modelsPerResourceType[resourceTypes[i]]->resourceForId(id);
```

It should be:

```
QString resourceTypeHere = "";
        QSharedPointer<KisResourceModel> resModel;
        resModel.setResourceFilter(KisResourceModel::ShowAllResources);
        for (int i = 0; i < resourceTypes.size(); i++) {
            res = modelsPerResourceType[resourceTypes[i]]->resourceForId(id);
```

That way it will search in the deactivated resources as well, so it should find
that resource.

If it doesn't find it *then*, then we have a bit of more trouble.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to