mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
Mount partitions when you open them in a new tab.
Instead of just emitting the slotItemMiddleClicked signal in PlacesPanel::slotItemContextMenuRequested we now use triggerItem with Qt::MiddleButton, which does set up the storage first and emit the slotItemMiddleClicked signal afterwards. BUG: 311226 FIXED-IN: 4.13.1 REVIEW: 117755
This commit is contained in:
parent
670737cbfd
commit
bd4bc61f79
1 changed files with 3 additions and 2 deletions
|
@ -283,8 +283,9 @@ void PlacesPanel::slotItemContextMenuRequested(int index, const QPointF& pos)
|
|||
} else if (action == hideAction) {
|
||||
item->setHidden(hideAction->isChecked());
|
||||
} else if (action == openInNewTabAction) {
|
||||
const KUrl url = m_model->item(index)->dataValue("url").value<KUrl>();
|
||||
emit placeMiddleClicked(url);
|
||||
// TriggerItem does set up the storage first and then it will
|
||||
// emit the slotItemMiddleClicked signal, because of Qt::MiddleButton.
|
||||
triggerItem(index, Qt::MiddleButton);
|
||||
} else if (action == teardownAction) {
|
||||
m_model->requestTeardown(index);
|
||||
} else if (action == ejectAction) {
|
||||
|
|
Loading…
Reference in a new issue