mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-02 14:45:04 +00:00
Fix right-mouse click crashes on Windows
This commit is contained in:
parent
d385c4d4c8
commit
b318ec31bb
|
@ -741,7 +741,7 @@ bool KItemListController::contextMenuEvent(QContextMenuEvent *event)
|
|||
// That's because the same click might have de-selected the item or because the press was only in the row of the item but not on it.
|
||||
if (pressedItem && m_selectionManager->selectedItems().contains(pressedItem.value())) {
|
||||
// The selection rectangle for an item was clicked
|
||||
Q_EMIT itemContextMenuRequested(m_pressedIndex.value(), globalPos);
|
||||
Q_EMIT itemContextMenuRequested(pressedItem.value(), globalPos);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue