Put selections in both clipboard and X selection buffer on Linux again.
authorManuel Nickschas <sputnick@quassel-irc.org>
Wed, 18 Jun 2008 17:44:09 +0000 (19:44 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 18 Jun 2008 17:50:41 +0000 (19:50 +0200)
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

index 8a70a6d..cf897b6 100644 (file)
@@ -425,9 +425,10 @@ void ChatWidget::mouseReleaseEvent(QMouseEvent *event) {
         // TODO Make X11SelectionMode configurable!
 #ifdef Q_WS_X11
         QApplication::clipboard()->setText(selectionToString(), QClipboard::Selection);
         // TODO Make X11SelectionMode configurable!
 #ifdef Q_WS_X11
         QApplication::clipboard()->setText(selectionToString(), QClipboard::Selection);
-#else
-        QApplication::clipboard()->setText(selectionToString());
 #endif
 #endif
+//#else
+        QApplication::clipboard()->setText(selectionToString());
+//#endif
         break;
       default:
         mouseMode = Normal;
         break;
       default:
         mouseMode = Normal;