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++
Fix Bundle Creator not working in other languages
Freya Lupenc751654c8794
diff --git a/plugins/extensions/resourcemanager/wdg_resource_preview.cpp b/plugins/extensions/resourcemanager/wdg_resource_preview.cppindex 73dbe525cc..8066346d1d 100644--- a/plugins/extensions/resourcemanager/wdg_resource_preview.cpp+++ b/plugins/extensions/resourcemanager/wdg_resource_preview.cpp@@ -73,8 +73,9 @@ WdgResourcePreview::WdgResourcePreview(WidgetType type, QWidget *parent) :resourceTypes << ResourceType::Patterns << ResourceType::Palettes << ResourceType::Workspaces;for (int i = 0; i < resourceTypes.size(); i++) {- m_ui->cmbResourceType->addItem(ResourceName::resourceTypeToName(resourceTypes[i]), resourceTypes[i]);- }+ m_ui->cmbResourceType->addItem(ResourceName::resourceTypeToName(resourceTypes[i]));+ m_ui->cmbResourceType->setItemData(m_ui->cmbResourceType->count()-1, resourceTypes[i], Qt::UserRole + KisResourceTypeModel::ResourceType);+ }}connect(m_ui->cmbResourceType, SIGNAL(activated(int)), SLOT(slotResourceTypeSelected(int)));@@ -280,20 +281,7 @@ void WdgResourcePreview::slotShowDeletedChanged(int newState)QString WdgResourcePreview::getCurrentResourceType(){- if (m_type == WidgetType::ResourceManager) {- return m_ui->cmbResourceType->currentData(Qt::UserRole + KisResourceTypeModel::ResourceType).toString();- } else {- QString s = m_ui->cmbResourceType->currentText();- if (s == "Brush Presets") return "paintoppresets";- if (s == "Brush Tips") return "brushes";- if (s == "Gradients") return "gradients";- if (s == "Gamut Masks") return "gamutmasks";- if (s == "SeExpr Scripts") return "seexpr_scripts";- if (s == "Palettes") return "palettes";- if (s == "Patterns") return "patterns";- if (s == "Workspaces") return "workspaces";- }- return "";+ return m_ui->cmbResourceType->currentData(Qt::UserRole + KisResourceTypeModel::ResourceType).toString();}QSharedPointer<KisTag> WdgResourcePreview::getCurrentTag()