diff --git a/aqt/main.py b/aqt/main.py index 16bf8fe1a..f1a919e3f 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -509,7 +509,7 @@ title="%s" %s>%s''' % ( self.form = aqt.forms.main.Ui_MainWindow() self.form.setupUi(self) # toolbar - tweb = aqt.webview.AnkiWebView() + tweb = self.toolbarWeb = aqt.webview.AnkiWebView() tweb.title = "top toolbar" tweb.setFocusPolicy(Qt.WheelFocus) self.toolbar = aqt.toolbar.Toolbar(self, tweb)