mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
fixed bug causing start drag on show context menu in the grid view
This commit is contained in:
parent
af3fefdbd9
commit
fff2f82955
@ -126,7 +126,6 @@ Rectangle {
|
||||
|
||||
if(mouse.button == Qt.RightButton) // context menu is requested
|
||||
{
|
||||
|
||||
if(!comicsSelectionHelper.isSelectedIndex(index)) //the context menu is requested outside the current selection, the selection will be
|
||||
{
|
||||
comicsSelectionHelper.setCurrentIndex(index)
|
||||
@ -135,6 +134,7 @@ Rectangle {
|
||||
|
||||
var coordinates = main.mapFromItem(realCell,mouseX,mouseY)
|
||||
contextMenuHelper.requestedContextMenu(Qt.point(coordinates.x,coordinates.y));
|
||||
mouse.accepted = false;
|
||||
|
||||
} else //left button
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user