Bug 188005

Summary: [Regression] Selection and Context Menues for Cool Streams are broken
Product: [Applications] amarok Reporter: simon
Component: generalAssignee: Amarok Developers <amarok-bugs-dist>
Status: RESOLVED FIXED    
Severity: normal CC: kfunk, nhn
Priority: HI    
Version First Reported In: 2.1-SVN   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description simon 2009-03-24 15:01:27 UTC
Version:           2.1-SVN (using 4.2.67 (KDE 4.2.67 (KDE 4.3 >= 20090318)), Gentoo)
Compiler:          x86_64-pc-linux-gnu-gcc
OS:                Linux (x86_64) release 2.6.26-tuxonice

hi,

somehow the handling of Clicks (Left/Right MB) is broken for the Cool Streams tab. It behaves strange and once some Streams are selected they can't be unselected
Comment 1 simon 2009-03-24 15:04:14 UTC
*** Bug 188004 has been marked as a duplicate of this bug. ***
Comment 2 Mark Kretschmann 2009-03-24 15:48:59 UTC
I can confirm this. Additionally, I'm getting the following debug output when clicking on the items:

QPainter::begin: Cannot paint on a null pixmap
QPainter::translate: Painter not active
QPainter::end: Painter not active, aborted
Comment 3 Enrico Ros 2009-03-24 16:20:28 UTC
The problem here is in the reimplementation of mousePressEvent(QMouseEvent *) is CollectionTreeView.cpp. I now that removing the reimplementation fixes the problem (and the QPainter strings too), but I don't know how to fix this.

The only purpose of the mousePressEvent reimpl is to expand top level items in the "Local Collection", but it kicks in into other places too (like Cool Streams) where there is nothing to expand (top level items are actual tracks!).
Comment 4 Valentin Rouet 2009-03-25 20:53:30 UTC
SVN commit 944595 by vrouet:

Fixed the reemplemented CollectionTreeView::mousePressEvent() that caused bad mouse handling in the cool streams service (and problably some other services).
BUG: 188005

 M  +1 -1      CollectionTreeView.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=944595