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

List:       kde-commits
Subject:    kdeextragear-1/amarok/src
From:       Seb Ruiz <seb100 () optusnet ! com ! au>
Date:       2005-05-01 7:54:19
Message-ID: 20050501075419.D0511635 () office ! kde ! org
[Download RAW message or body]

CVS commit by seb: 

* Possible fix for party mode crash


  M +5 -0      playlist.cpp   1.504


--- kdeextragear-1/amarok/src/playlist.cpp  #1.503:1.504
@@ -461,4 +461,9 @@ Playlist::addSpecialTracks( uint songCou
     QStringList url = qb.run();
     //FIXME: No items to add or if user wants non-unique entries!
+    if( url.isEmpty() )
+    {
+        amaroK::StatusBar::instance()->shortMessage( i18n("No tracks were returned to be inserted.") ):
+        return;
+    }
     insertMedia( KURL::List( url ), Playlist::Unique );
 }


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

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