Fix #2000039 [GridView' object has no attribute 'handle_mouse_release_event'](https://bugs.launchpad.net/calibre/+bug/2000039)

This commit is contained in:
Kovid Goyal 2022-12-19 11:10:59 +05:30
parent e9e19fe6de
commit 87da4098f5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -120,7 +120,7 @@ def mousePressEvent(self, event):
def mouseReleaseEvent(self, event):
if hasattr(self, 'handle_mouse_press_event'):
if hasattr(self, 'handle_mouse_release_event'):
return self.handle_mouse_release_event(event)
return qt_item_view_base_class(self).mouseReleaseEvent(self, event)