|
|
|
@ -593,7 +593,7 @@ void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position)
|
|
|
|
|
m_openWithActions.clear();
|
|
|
|
|
KURL urlToOpen = currentURL();
|
|
|
|
|
TQString mimeType = KMimeType::findByURL(urlToOpen, 0, true, true)->name();
|
|
|
|
|
KTrader::OfferList offers = KTrader::self()->query(mimeType, "Type == 'Application'");
|
|
|
|
|
TDETrader::OfferList offers = TDETrader::self()->query(mimeType, "Type == 'Application'");
|
|
|
|
|
TQDict<QuantaPlugin> plugins = QuantaPluginInterface::ref()->plugins();
|
|
|
|
|
m_pluginIds.clear();
|
|
|
|
|
|
|
|
|
@ -602,7 +602,7 @@ void BaseTreeView::insertOpenWithMenu(KPopupMenu *menu, int position)
|
|
|
|
|
m_openWithMenu = new KPopupMenu(this);
|
|
|
|
|
if (offers.count() > 0)
|
|
|
|
|
{
|
|
|
|
|
KTrader::OfferList::Iterator it;
|
|
|
|
|
TDETrader::OfferList::Iterator it;
|
|
|
|
|
for (it = offers.begin(); it != offers.end(); ++it)
|
|
|
|
|
{
|
|
|
|
|
KAction *action = new KAction((*it)->name(), (*it)->icon(), 0, 0, TQFile::encodeName((*it)->desktopEntryPath()).data());
|
|
|
|
|