File amarok-enginecontroller.diff of Package kde3-amarok

--- amarok/src/enginecontroller.cpp.orig	2005-10-25 22:25:14.000000000 +0200
+++ amarok/src/enginecontroller.cpp	2005-10-25 22:25:32.000000000 +0200
@@ -145,6 +145,11 @@
     QString query = "[X-KDE-Amarok-plugintype] == 'engine' and [X-KDE-Amarok-name] != '%1'";
     KTrader::OfferList offers = PluginManager::query( query.arg( engineName ) );
 
+    for( int n = offers.count()-1, i = 0; i < n; i++ )
+       if ( offers[n]->property("X-KDE-amaroK-name") == "xine-engine" &&
+            !QFile::exists("/usr/share/xine/mad") )
+           offers[n]->property( "X-KDE-amaroK-rank" ) = "128";
+
     // sort by rank, QValueList::operator[] is O(n), so this is quite inefficient
     #define rank( x ) (x)->property( "X-KDE-Amarok-rank" ).toInt()
     for( int n = offers.count()-1, i = 0; i < n; i++ )
openSUSE Build Service is sponsored by