make sure move to question only happens once

This commit is contained in:
Damien Elmes 2009-06-11 03:01:24 +09:00
parent 6297a8c2f5
commit 49178bd6ae

View file

@ -1309,6 +1309,9 @@ later by clicking on the left-pointing arrow on the toolbar.
SIGNAL("textChanged(QString)"), self.onMinuteLimitChanged) SIGNAL("textChanged(QString)"), self.onMinuteLimitChanged)
self.connect(self.mainWin.newPerDay, self.connect(self.mainWin.newPerDay,
SIGNAL("textChanged(QString)"), self.onNewLimitChanged) SIGNAL("textChanged(QString)"), self.onNewLimitChanged)
self.connect(self.mainWin.startReviewingButton,
SIGNAL("clicked()"),
self.onStartReview)
def onMinuteLimitChanged(self, qstr): def onMinuteLimitChanged(self, qstr):
try: try:
@ -1443,9 +1446,6 @@ learnt today")
else: else:
self.mainWin.startReviewingButton.setText(_("Start &Reviewing")) self.mainWin.startReviewingButton.setText(_("Start &Reviewing"))
self.mainWin.startReviewingButton.setFocus() self.mainWin.startReviewingButton.setFocus()
self.connect(self.mainWin.startReviewingButton,
SIGNAL("clicked()"),
self.onStartReview)
self.setupStudyOptions() self.setupStudyOptions()
self.mainWin.studyOptionsFrame.show() self.mainWin.studyOptionsFrame.show()
self.mainWin.studyOptionsFrame.setFixedWidth( self.mainWin.studyOptionsFrame.setFixedWidth(