[Knode-devel] kdepim/knode
Volker Krause
volker.krause at rwth-aachen.de
Sat Jul 10 17:02:16 CEST 2004
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 at 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