[Knode-devel] kdepim/knode
Laurent Montel
montel at kde.org
Wed Apr 14 15:47:13 CEST 2004
CVS commit by mlaurent:
Display "mailto popup" when there is a email into mail reader
M +2 -5 knarticlewidget.cpp 1.171
--- kdepim/knode/knarticlewidget.cpp #1.170:1.171
@@ -1478,4 +1478,5 @@ void KNArticleWidget::anchorClicked(cons
anchorType type=ATunknown;
QString target;
+ kdDebug()<<" target :"<<a<<endl;
if(a.left(17)=="internal://author") {
type=ATauthor;
@@ -1505,5 +1506,4 @@ void KNArticleWidget::anchorClicked(cons
target=a.mid(11, a.length()-11);
- if ((button==LeftButton)||(button==MidButton)) {
if (a_rticle->collection()->type()!=KNArticleCollection::CTgroup)
type=ATmailto;
@@ -1518,7 +1518,4 @@ void KNArticleWidget::anchorClicked(cons
}
}
- } else {
- type=ATunknown;
- }
}
@@ -1601,5 +1598,5 @@ void KNArticleWidget::anchorClicked(cons
}
}
- else if ( type==ATauthor ) {
+ else if ( type==ATauthor || type == ATmailto ) {
target = a_rticle->from()->asUnicodeString();
switch( u_mailtoPopup->exec( *p ) ) {
More information about the Knode-devel
mailing list