Commit eca7f0b7 authored by Tobias Fella's avatar Tobias Fella

kcm/componentchooser: Fix default terminal application

parent 56da07c4
......@@ -65,9 +65,8 @@ void ComponentChooserTerminal::load()
if (!preferredService.isEmpty() && !preferredServiceAdded) {
// standard application was specified by the user
QVariantMap application;
TerminalSettings settings;
auto service = KService::serviceByStorageId(QStringLiteral("org.kde.ksysguard.desktop"));
if (settings.defaultTerminalServiceValue() != settings.terminalService() && service != nullptr) {
auto service = KService::serviceByStorageId(settings.terminalService());
if (service) {
application["name"] = service->name();
application["icon"] = service->icon();
application["storageId"] = service->storageId();
......
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