diff --git a/ankiqt/ui/deckproperties.py b/ankiqt/ui/deckproperties.py index c4a01a04f..f5e734c72 100644 --- a/ankiqt/ui/deckproperties.py +++ b/ankiqt/ui/deckproperties.py @@ -237,7 +237,7 @@ class DeckProperties(QDialog): v = float(self.dialog.delay2.text()) self.updateField(self.d, 'delay2', v) v = int(self.dialog.failedCardMax.text()) - self.updateField(self.d, 'failedCardMax', v) + self.updateField(self.d, 'failedCardMax', max(v, 5)) v = int(self.dialog.newCardsPerDay.text()) self.updateField(self.d, 'newCardsPerDay', v) except ValueError: diff --git a/ankiqt/ui/main.py b/ankiqt/ui/main.py index 2aa4fd9f2..bf0a73e65 100644 --- a/ankiqt/ui/main.py +++ b/ankiqt/ui/main.py @@ -117,7 +117,7 @@ class AnkiQt(QMainWindow): def onTimeout(self): print self.pool ui.utils.showText(_("""\ -An error occurred. Please copy the following message into a bug report.\n\n""" + self.pool)) +An error occurred. Please copy the following message into a bug report.\n\n""" + self.pool[0:10000])) self.pool = "" self.timer = None pipe = ErrorPipe(self)