mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
fixed selection issues in grid view
This commit is contained in:
@ -12,7 +12,7 @@ Rectangle {
|
||||
|
||||
function selectAll(from,to)
|
||||
{
|
||||
for(var i = from+1;i<to;i++)
|
||||
for(var i = from;i<to;i++)
|
||||
{
|
||||
comicsSelectionHelper.selectIndex(i);
|
||||
}
|
||||
@ -120,6 +120,14 @@ Rectangle {
|
||||
|
||||
}
|
||||
|
||||
onReleased: {
|
||||
if(mouse.button != Qt.RightButton && !(mouse.modifiers & Qt.ControlModifier || mouse.modifiers & Qt.ShiftModifier))
|
||||
{
|
||||
comicsSelectionHelper.clear();
|
||||
grid.currentIndex = index;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user