[Knode-devel] [Bug 77291] 'copy link location' doesn't work from knode

Volker Krause volker.krause at rwth-aachen.de
Sat Jul 10 17:02:23 CEST 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=77291      
volker.krause rwth-aachen de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From volker.krause rwth-aachen de  2004-07-10 17:02 -------
CVS commit by vkrause: 

- Fix copying of email addresses.
- Make link copy behaviour consistent with khtml/kmail (ie. set the selection too).

CCMAIL: 77291-done bugs kde org


  M +7 -4      knarticlewidget.cpp   1.180


--- kdepim/knode/knarticlewidget.cpp  #1.179:1.180
 @ -3,5 +3,5  @
 
     KNode, the KDE newsreader
-    Copyright (c) 1999-2001 the KNode authors.
+    Copyright (c) 1999-2004 the KNode authors.
     See file AUTHORS for details
 
 @ -1609,4 +1609,5  @ void KNArticleWidget::anchorClicked(cons
     }
     else if ( type==ATauthor || type == ATmailto ) {
+        if ( type == ATauthor )
         target = a_rticle->from()->asUnicodeString();
         switch( u_mailtoPopup->exec( *p ) ) {
 @ -1618,5 +1619,6  @ void KNArticleWidget::anchorClicked(cons
             break;
         case PUP_COPYTOCLIPBOARD:
-            QApplication::clipboard()->setText(target);
+            QApplication::clipboard()->setText(target, QClipboard::Clipboard);
+            QApplication::clipboard()->setText(target, QClipboard::Selection);
             break;
         }
 @ -1629,5 +1631,6  @ void KNArticleWidget::anchorClicked(cons
         break;
         case PUP_COPYURL:
-          QApplication::clipboard()->setText(target);
+          QApplication::clipboard()->setText(target, QClipboard::Clipboard);
+          QApplication::clipboard()->setText(target, QClipboard::Selection);
         break;
       case PUP_ADDBOOKMARKS:


More information about the Knode-devel mailing list