Commit 6c5619ff authored by David Redondo's avatar David Redondo 🏎

Also relase the window in the destructor

Summary:
Otherwise the keyboard is never released when the item is destroyed while
capturing is active

Reviewers: broulik, #frameworks, davidedmundson

Reviewed By: davidedmundson

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D28697
parent a09398ef
......@@ -167,6 +167,9 @@ KeySequenceHelper::KeySequenceHelper(QQuickItem* parent):
KeySequenceHelper::~KeySequenceHelper()
{
if (d->grabbedWindow) {
d->grabbedWindow->setKeyboardGrabEnabled(false);
}
delete d;
}
......
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