From 911ef2eb93db3f86c160dfe22fd186f2221e1d76 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Wed, 18 Jun 2008 19:44:09 +0200 Subject: [PATCH 1/1] Put selections in both clipboard and X selection buffer on Linux again. Not all users seem to be able to access the clipboard, so we'd rather put it in both and allow copying for everybody. I guess in the new ChatView we'll have something more sensible at some point. --- src/qtui/chatwidget.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/qtui/chatwidget.cpp b/src/qtui/chatwidget.cpp index 8a70a6df..cf897b6f 100644 --- a/src/qtui/chatwidget.cpp +++ b/src/qtui/chatwidget.cpp @@ -425,9 +425,10 @@ void ChatWidget::mouseReleaseEvent(QMouseEvent *event) { // TODO Make X11SelectionMode configurable! #ifdef Q_WS_X11 QApplication::clipboard()->setText(selectionToString(), QClipboard::Selection); -#else - QApplication::clipboard()->setText(selectionToString()); #endif +//#else + QApplication::clipboard()->setText(selectionToString()); +//#endif break; default: mouseMode = Normal; -- 2.20.1