]> cloud.milkyroute.net Git - dolphin.git/commit
Fix DolphinRemoveAction Shift toggling on Wayland
authorElvis Angelaccio <elvis.angelaccio@kde.org>
Thu, 24 Aug 2017 16:33:27 +0000 (18:33 +0200)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Thu, 7 Sep 2017 19:31:42 +0000 (21:31 +0200)
commit2fd85facf85b39f84eeada10bcf80060bb72ab51
treef72067d82a5f6f15486cbb6ae4f7aa806c4ff5a2
parent735b171451a05cdda77f711ff1ef23408e9389ed
Fix DolphinRemoveAction Shift toggling on Wayland

QGuiApplication::queryKeyboardModifiers() does not work on Wayland [1].
We don't need it in the first place, since we already know (thanks to
the key events) whether Shift has been pressed or released.
So we can just pass this information to DolphinRemoveAction::update().

BUG: 354301

[1]: https://bugreports.qt.io/browse/QTBUG-62786

Differential Revision: https://phabricator.kde.org/D7519
src/dolphincontextmenu.cpp
src/dolphinpart.cpp
src/dolphinremoveaction.cpp
src/dolphinremoveaction.h