mirror of
				https://github.com/kovidgoyal/calibre.git
				synced 2025-11-04 03:27:00 -05:00 
			
		
		
		
	Fix #1740987 [Error: Unhandled exception after search](https://bugs.launchpad.net/calibre/+bug/1740987)
This commit is contained in:
		
							parent
							
								
									589214ce67
								
							
						
					
					
						commit
						bfcd447b6c
					
				@ -316,7 +316,14 @@ class ViewAction(InterfaceAction):
 | 
				
			|||||||
            return
 | 
					            return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if self.gui.current_view() is self.gui.library_view:
 | 
					        if self.gui.current_view() is self.gui.library_view:
 | 
				
			||||||
            ids = list(map(self.gui.library_view.model().id, rows))
 | 
					            ids = []
 | 
				
			||||||
 | 
					            m = self.gui.library_view.model().id
 | 
				
			||||||
 | 
					            for r in rows:
 | 
				
			||||||
 | 
					                try:
 | 
				
			||||||
 | 
					                    ids.append(m(r))
 | 
				
			||||||
 | 
					                except Exception:
 | 
				
			||||||
 | 
					                    pass
 | 
				
			||||||
 | 
					            if ids:
 | 
				
			||||||
                self._view_calibre_books(ids)
 | 
					                self._view_calibre_books(ids)
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            paths = self.gui.current_view().model().paths(rows)
 | 
					            paths = self.gui.current_view().model().paths(rows)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user