m_dirLister = new KDirLister;
m_dirLister->setAutoUpdate(true);
- m_dirLister->setMainWindow(parentWidget->topLevelWidget());
+ m_dirLister->setMainWindow(parentWidget->window());
m_dirLister->setDelayedMimeTypes(true);
//connect(m_dirLister, SIGNAL(started(KUrl)), this, SLOT(slotStarted()));
} else {
// Left button. [Right button goes to slotOpenContextMenu before triggered can be emitted]
kDebug() << "LMB";
- emit m_extension->openUrlRequest(item.url(), args, browserArgs);
+ emit m_extension->openUrlRequest(item.targetUrl(), args, browserArgs);
}
}
editActions.append(actionCollection()->action("delete"));
actionGroups.insert("editactions", editActions);
- KFileItemList items; items.append(item);
+ // TODO: We should change the signature of the slots (and signals) for being able
+ // to tell for which items we want a popup.
+ KFileItemList items = (m_view->selectedItems().count() ? m_view->selectedItems()
+ : KFileItemList() << item);
emit m_extension->popupMenu(QCursor::pos(),
items,
KParts::OpenUrlArguments(),