Commit 6db931f0 authored by David Edmundson's avatar David Edmundson Committed by David Edmundson
Browse files

[klipper] Prevent crash if clipboard is empty and preventEmptyClipboard is off

On wayland the concept of an empty clipboard is presented differently.
The case where we're not syncing the clipboard was not guarded
correctly.
parent 483b30d7
......@@ -740,6 +740,8 @@ void Klipper::checkClipData( bool selectionMode )
setClipboard( *top, selectionMode ? Selection : Clipboard );
}
return;
} else if (clipEmpty) {
return;
}
// this must be below the "bNoNullClipboard" handling code!
......
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