Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 29983d9f authored by Dominik Haumann's avatar Dominik Haumann

Return "Uncategorized" category in case no category was specified

parent 4e2f9cc4
......@@ -400,7 +400,11 @@ void KateExternalToolsConfigWidget::addNewTool(KateExternalTool *tool)
QStandardItem * KateExternalToolsConfigWidget::addCategory(const QString & category)
{
// searach for existing category
if (category.isEmpty()) {
return m_noCategory;
}
// search for existing category
auto items = m_toolsModel.findItems(category);
if (!items.empty()) {
return items.front();
......
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