Index: MainWindow/ExternalPopup.cpp
===================================================================
--- MainWindow/ExternalPopup.cpp	(revision 733678)
+++ MainWindow/ExternalPopup.cpp	(working copy)
@@ -26,6 +26,7 @@
 #include <krun.h>
 #include <klocale.h>
 #include <kfileitem.h>
+#include <kdebug.h>
 
 void MainWindow::ExternalPopup::populate( DB::ImageInfoPtr current, const QStringList& imageList )
 {
@@ -71,6 +72,9 @@
 {
     QString name = text( id );
     KTrader::OfferList offers = KTrader::self()->query( *(_appToMimeTypeMap[name].begin()), QString::fromLatin1("Type == 'Application' and Name == '%1'").arg(name));
+    kdDebug() << "id: " << id << ", name: '" << name << "', mimeType: '" << *(_appToMimeTypeMap[name].begin()) << "', offers.count(): " << offers.count() << endl;
+    for ( KTrader::OfferList::const_iterator it = offers.begin(); it != offers.end(); ++it )
+        kdDebug() << " type: " << (**it).type() << ", name: " << (**it).name() << endl;
     Q_ASSERT( offers.count() == 1 );
     KService::Ptr ptr = offers.first();
     KURL::List lst;
