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

List:       kde-commits
Subject:    kdeextragear-1/amarok/amarok
From:       Frederik Holljen <fh () ez ! no>
Date:       2004-03-23 13:54:33
Message-ID: 20040323135433.C0479999B () office ! kde ! org
[Download RAW message or body]

CVS commit by holljen: 

Fix for oops. itemAt() can return 0.


  M +11 -8     playlistwidget.cpp   1.149


--- kdeextragear-1/amarok/amarok/playlistwidget.cpp  #1.148:1.149
@@ -1202,4 +1202,6 @@ bool PlaylistWidget::eventFilter( QObjec
             PlaylistItem *item = static_cast<PlaylistItem*>(itemAt(p) );
             const int queueIndex = m_nextTracks.findRef( item );
+            if( item )
+            {
             item->setSelected( false ); //for prettiness
             if( queueIndex!= -1 )
@@ -1212,4 +1214,5 @@ bool PlaylistWidget::eventFilter( QObjec
             repaintItem( item );
             refreshNextTracks();
+            }
             return TRUE;
         }


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

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