[Knode-devel] [Bug 69429] left button mouse click on Message-ID does not find article; middle button does

Hajo Simons hsimons at gmx.de
Mon Dec 1 14:28:30 CET 2003


------- 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=69429     




------- Additional Comments From hsimons at gmx.de  2003-12-01 14:28 -------
forget the fix I posted beforehand - that would leave the mouse in paste mode
better:
RCS file: /home/kde/kdepim/knode/knarticlewidget.cpp,v
retrieving revision 1.162
diff -p -U3 -r1.162 knarticlewidget.cpp
--- knarticlewidget.cpp	24 Nov 2003 16:46:27 -0000	1.162
+++ knarticlewidget.cpp	1 Dec 2003 13:27:14 -0000
@@ -379,10 +379,11 @@ bool KNArticleWidget::eventFilter(QObjec
 void KNArticleWidget::viewportMousePressEvent(QMouseEvent *e)
 {
   QString a= anchorAt(viewportToContents(e->pos()));
-
-  if(!a.isEmpty() && (e->button()==RightButton || e->button()==MidButton))
+  
+  if(!a.isEmpty() && (e->button()!=NoButton))
     anchorClicked(a, e->button(), &e->globalPos());
   else
+  {
     if (e->button()==RightButton) {
       QPopupMenu *popup = static_cast<QPopupMenu *>(knGlobals.guiClient->factory()->container("body_popup", 
 knGlobals.guiClient));
@@ -390,7 +391,8 @@ knGlobals.guiClient));
         popup->popup(e->globalPos());
     }
 
-  QTextBrowser::viewportMousePressEvent(e);
+    QTextBrowser::viewportMousePressEvent(e);
+  }
 }


More information about the Knode-devel mailing list