Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 01dcc30e475c184b57cffdc024fc2ec8 > files > 2

amarok-1.90-0.866096.6mdv2009.0.src.rpm

diff -p -up amarok-1.90/src/browsers/collectionbrowser/CollectionTreeView.cpp.orig amarok-1.90/src/browsers/collectionbrowser/CollectionTreeView.cpp
--- amarok-1.90/src/browsers/collectionbrowser/CollectionTreeView.cpp.orig	2008-10-02 13:37:22.000000000 -0300
+++ amarok-1.90/src/browsers/collectionbrowser/CollectionTreeView.cpp	2008-10-02 13:38:44.000000000 -0300
@@ -183,6 +183,10 @@ CollectionTreeView::contextMenuEvent( QC
         indices = tmp;
     }
 
+    // if clicking on an empty space, just returns
+    if (!indices.count())
+        return;
+
     PopupDropperActionList actions = createBasicActions( indices );
     actions += createExtendedActions( indices );