From 49178bd6ae150fc6bbbafd46eb8946003163d810 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 11 Jun 2009 03:01:24 +0900 Subject: [PATCH] make sure move to question only happens once --- ankiqt/ui/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index d90831b71..f978b78ad 100755 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -1309,6 +1309,9 @@ later by clicking on the left-pointing arrow on the toolbar. SIGNAL("textChanged(QString)"), self.onMinuteLimitChanged) self.connect(self.mainWin.newPerDay, SIGNAL("textChanged(QString)"), self.onNewLimitChanged) + self.connect(self.mainWin.startReviewingButton, + SIGNAL("clicked()"), + self.onStartReview) def onMinuteLimitChanged(self, qstr): try: @@ -1443,9 +1446,6 @@ learnt today") else: self.mainWin.startReviewingButton.setText(_("Start &Reviewing")) self.mainWin.startReviewingButton.setFocus() - self.connect(self.mainWin.startReviewingButton, - SIGNAL("clicked()"), - self.onStartReview) self.setupStudyOptions() self.mainWin.studyOptionsFrame.show() self.mainWin.studyOptionsFrame.setFixedWidth(