mirror of
https://invent.kde.org/system/dolphin
synced 2024-07-04 17:30:55 +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.
|
// 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())) {
|
if (pressedItem && m_selectionManager->selectedItems().contains(pressedItem.value())) {
|
||||||
// The selection rectangle for an item was clicked
|
// The selection rectangle for an item was clicked
|
||||||
Q_EMIT itemContextMenuRequested(m_pressedIndex.value(), globalPos);
|
Q_EMIT itemContextMenuRequested(pressedItem.value(), globalPos);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user