mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
limit error dialog to 10,000 chars, limit maxFailed to 5+
This commit is contained in:
parent
a9857a5e4f
commit
aa5254ba60
2 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ class DeckProperties(QDialog):
|
||||||
v = float(self.dialog.delay2.text())
|
v = float(self.dialog.delay2.text())
|
||||||
self.updateField(self.d, 'delay2', v)
|
self.updateField(self.d, 'delay2', v)
|
||||||
v = int(self.dialog.failedCardMax.text())
|
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())
|
v = int(self.dialog.newCardsPerDay.text())
|
||||||
self.updateField(self.d, 'newCardsPerDay', v)
|
self.updateField(self.d, 'newCardsPerDay', v)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
|
|
@ -117,7 +117,7 @@ class AnkiQt(QMainWindow):
|
||||||
def onTimeout(self):
|
def onTimeout(self):
|
||||||
print self.pool
|
print self.pool
|
||||||
ui.utils.showText(_("""\
|
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.pool = ""
|
||||||
self.timer = None
|
self.timer = None
|
||||||
pipe = ErrorPipe(self)
|
pipe = ErrorPipe(self)
|
||||||
|
|
Loading…
Reference in a new issue