mirror of
https://github.com/ankitects/anki.git
synced 2025-11-09 14:17:13 -05:00
fix page reload
This commit is contained in:
parent
6c9db9f8bd
commit
f083d95282
1 changed files with 4 additions and 1 deletions
|
|
@ -104,6 +104,9 @@ class AnkiQt(QMainWindow):
|
||||||
def onSigInt(self, signum, frame):
|
def onSigInt(self, signum, frame):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
def onReload(self):
|
||||||
|
self.moveToState("auto")
|
||||||
|
|
||||||
def setupMainWindow(self):
|
def setupMainWindow(self):
|
||||||
# main window
|
# main window
|
||||||
self.mainWin = ankiqt.forms.main.Ui_MainWindow()
|
self.mainWin = ankiqt.forms.main.Ui_MainWindow()
|
||||||
|
|
@ -115,7 +118,7 @@ class AnkiQt(QMainWindow):
|
||||||
self.help = ui.help.HelpArea(self.mainWin.helpFrame, self.config, self)
|
self.help = ui.help.HelpArea(self.mainWin.helpFrame, self.config, self)
|
||||||
self.connect(self.mainWin.mainText.pageAction(QWebPage.Reload),
|
self.connect(self.mainWin.mainText.pageAction(QWebPage.Reload),
|
||||||
SIGNAL("activated()"),
|
SIGNAL("activated()"),
|
||||||
lambda: self.moveToState("auto"))
|
self.onReload)
|
||||||
# congrats
|
# congrats
|
||||||
self.connect(self.mainWin.learnMoreButton,
|
self.connect(self.mainWin.learnMoreButton,
|
||||||
SIGNAL("clicked()"),
|
SIGNAL("clicked()"),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue