From: Manuel Nickschas Date: Wed, 18 Jun 2008 17:44:09 +0000 (+0200) Subject: Put selections in both clipboard and X selection buffer on Linux again. X-Git-Tag: 0.3.0~360 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=911ef2eb93db3f86c160dfe22fd186f2221e1d76 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. --- 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;