mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 17:18:23 -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(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
|
if(!comicsSelectionHelper.isSelectedIndex(index)) //the context menu is requested outside the current selection, the selection will be
|
||||||
{
|
{
|
||||||
comicsSelectionHelper.setCurrentIndex(index)
|
comicsSelectionHelper.setCurrentIndex(index)
|
||||||
@ -135,6 +134,7 @@ Rectangle {
|
|||||||
|
|
||||||
var coordinates = main.mapFromItem(realCell,mouseX,mouseY)
|
var coordinates = main.mapFromItem(realCell,mouseX,mouseY)
|
||||||
contextMenuHelper.requestedContextMenu(Qt.point(coordinates.x,coordinates.y));
|
contextMenuHelper.requestedContextMenu(Qt.point(coordinates.x,coordinates.y));
|
||||||
|
mouse.accepted = false;
|
||||||
|
|
||||||
} else //left button
|
} else //left button
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user