Skip to content

Commit 3b06868

Browse files
committed
WebviewWidget: Handling Esc key, parent is sometimes overriden
... and no longer a callable Qt property.
1 parent 61f4cba commit 3b06868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Orange/widgets/utils/webview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def hideWindow(self):
6060
while isinstance(w, QWidget):
6161
if w.windowFlags() & (Qt.Window | Qt.Dialog):
6262
return w.hide()
63-
w = w.parent()
63+
w = w.parent() if callable(w.parent) else w.parent
6464

6565

6666
if HAVE_WEBENGINE:

0 commit comments

Comments
 (0)