mirror of
				https://github.com/YACReader/yacreader
				synced 2025-11-04 01:05:06 -05:00 
			
		
		
		
	fixed selection issue in grid view
This commit is contained in:
		@ -150,11 +150,14 @@ Rectangle {
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                    onReleased: {
 | 
			
		||||
                        /*if(mouse.button != Qt.RightButton && !(mouse.modifiers & Qt.ControlModifier || mouse.modifiers & Qt.ShiftModifier))
 | 
			
		||||
                        if(mouse.button == Qt.LeftButton && !(mouse.modifiers & Qt.ControlModifier || mouse.modifiers & Qt.ShiftModifier))
 | 
			
		||||
                        {
 | 
			
		||||
                            comicsSelectionHelper.setCurrentIndex(index)
 | 
			
		||||
                            grid.currentIndex = index;
 | 
			
		||||
                        }*/
 | 
			
		||||
                            if(comicsSelectionHelper.isSelectedIndex(index))
 | 
			
		||||
                            {
 | 
			
		||||
                                comicsSelectionHelper.setCurrentIndex(index)
 | 
			
		||||
                                grid.currentIndex = index;
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user