aboutsummaryrefslogtreecommitdiff
path: root/net/kdenetwork3/files/patch-ksirc-kstextview.cpp
blob: da07e4149446e09c3293ea1d36668d3d672348f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- ksirc/kstextview.cpp
+++ ksirc/kstextview.cpp
@@ -1954,9 +1954,5 @@ void TextView::contentsMouseReleaseEvent
     if (ev->button() & Qt::MidButton)
     {
-        QClipboard *cp = KApplication::clipboard();
-        bool restoreMode = cp->selectionModeEnabled();
-        cp->setSelectionMode(true);
-        emit pasteReq( cp->text() );
-        cp->setSelectionMode(restoreMode);
+        emit pasteReq( KApplication::clipboard()->text( QClipboard::Selection) );
         return;
     }