From acddfcfeb9db534a62d2c4211ad714a5b8c96139 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Sat, 16 Jul 2022 18:20:32 -0500 Subject: [PATCH] Pass variable args to back compat method exec_() --- src/calibre/gui2/pyqt6_compat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/pyqt6_compat.py b/src/calibre/gui2/pyqt6_compat.py index d95d0a081d..7a7e17e3c2 100644 --- a/src/calibre/gui2/pyqt6_compat.py +++ b/src/calibre/gui2/pyqt6_compat.py @@ -33,8 +33,8 @@ QHoverEvent.posF = lambda self: self.position() # Restore the removed exec_ method -def exec_(self): - return self.exec() +def exec_(self, *args, **kwargs): + return self.exec(*args, **kwargs) QDialog.exec_ = exec_