Commit b2797b48 authored by David Redondo's avatar David Redondo 🏎 Committed by Nate Graham
Browse files

kcms/keys: Use storageId instead of desktopEntryName

The latter is always lower case while storageId preserves the
original capitalization.
BUG:438204


(cherry picked from commit 84a4c73b)
parent d451d703
......@@ -176,7 +176,7 @@ void KCMKeys::addApplication(QQuickItem *ctx)
connect(dialog, &KOpenWithDialog::finished, this, [this, dialog](int result) {
if (result == QDialog::Accepted && dialog->service()) {
const KService::Ptr service = dialog->service();
const QString desktopFileName = service->desktopEntryName() + ".desktop";
const QString desktopFileName = service->storageId();
if (m_globalAccelModel->match(m_shortcutsModel->index(0, 0), BaseModel::ComponentRole, desktopFileName, 1, Qt::MatchExactly).isEmpty()) {
m_globalAccelModel->addApplication(desktopFileName, service->name());
} else {
......
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