1
0
mirror of https://invent.kde.org/system/dolphin synced 2024-07-02 16:31:23 +00:00

Fix right-mouse click crashes on Windows

This commit is contained in:
Julius Künzel 2024-03-24 15:03:19 +00:00 committed by Méven Car
parent d385c4d4c8
commit b318ec31bb

View File

@ -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;
}