Fix use of assert/crash when removing global shortcut

Authored by davidedmundson on Mar 22 2018, 8:51 AM.

Description

Fix use of assert/crash when removing global shortcut

Summary:
I'm not the author, but it's pretty clear what the intention was.

We expect to get one result back from proxyModel->match
We use results.first(), so we want to check we have at least one entry.
The assert was written backwards

BUG: 387444

Test Plan: Can now remove a group without a crash

Reviewers: Plasma, graesslin

Reviewed By: Plasma, graesslin

Subscribers: graesslin, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D11567

Details

Committed
davidedmundsonMar 22 2018, 8:51 AM
Reviewer
Plasma
Differential Revision
D11567: Fix use of assert/crash when removing global shortcut
Parents
R119:8af970fd49f3: KCM Launch Feedback not saving cursor settings
Branches
Unknown
Tags
Unknown