diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/kernel/qclipboard_x11.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qclipboard_x11.cpp b/src/gui/kernel/qclipboard_x11.cpp index 5495bfe..9621944 100644 --- a/src/gui/kernel/qclipboard_x11.cpp +++ b/src/gui/kernel/qclipboard_x11.cpp @@ -916,7 +916,8 @@ bool QClipboard::event(QEvent *e) // That means application exits and we need to give clipboard // content to the clipboard manager. // First we check if there is a clipboard manager. - if (XGetSelectionOwner(X11->display, ATOM(CLIPBOARD_MANAGER)) == XNone) + if (XGetSelectionOwner(X11->display, ATOM(CLIPBOARD_MANAGER)) == XNone + || !owner) return true; Window ownerId = owner->internalWinId(); |