Fix a typo
It makes more sense to test primarySelection().
This commit is contained in:
parent
efbe1c9664
commit
cd512fee2b
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ void SeatInterfacePrivate::registerDataControlDevice(DataControlDeviceV1Interfac
|
||||||
// Special klipper workaround to avoid a race
|
// Special klipper workaround to avoid a race
|
||||||
// If the mimetype x-kde-onlyReplaceEmpty is set, and we've had another update in the meantime, do nothing
|
// If the mimetype x-kde-onlyReplaceEmpty is set, and we've had another update in the meantime, do nothing
|
||||||
// See https://github.com/swaywm/wlr-protocols/issues/92
|
// See https://github.com/swaywm/wlr-protocols/issues/92
|
||||||
if (dataDevice->selection() && dataDevice->primarySelection()->mimeTypes().contains(QLatin1String("application/x-kde-onlyReplaceEmpty"))
|
if (dataDevice->primarySelection() && dataDevice->primarySelection()->mimeTypes().contains(QLatin1String("application/x-kde-onlyReplaceEmpty"))
|
||||||
&& currentPrimarySelection) {
|
&& currentPrimarySelection) {
|
||||||
dataDevice->primarySelection()->cancel();
|
dataDevice->primarySelection()->cancel();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue