[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/amarok/amarok/analyzers
From:       Max Howell <max.howell () methylblue ! com>
Date:       2004-01-08 19:46:57
Message-ID: 20040108194657.15869608E () office ! kde ! org
[Download RAW message or body]

CVS commit by mhowell: 

Seems to fix crash bug I introduced. Why it caused a crash I have no idea! The gist: \
ignore() mousePressEvents that aren't the leftbutton.


  M +7 -3      analyzerbase.cpp   1.10


--- kdenonbeta/amarok/amarok/analyzers/analyzerbase.cpp  #1.9:1.10
@@ -98,7 +98,11 @@ void AnalyzerBase::initSin( std::vector<
 void AnalyzerBase::mousePressEvent( QMouseEvent *e )
 {
+    if( e->button() == Qt::LeftButton )
+    {
     emit clicked();
     
     e->accept(); //don't propagate to PlayerWidget!
+    }
+    else e->ignore();
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic