From f1c5c88c10e8299ded5f8486809fd08128fde235 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 14 May 2020 21:59:42 +1000 Subject: [PATCH] no longer need to check addNote's return value --- qt/aqt/addcards.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index 12b65ba7c..3dc5e9e41 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -177,17 +177,7 @@ class AddCards(QDialog): ) ): return None - cards = self.mw.col.addNote(note) - if not cards: - showWarning( - _( - """\ -The input you have provided would make an empty \ -question on all cards.""" - ), - help="AddItems", - ) - return None + self.mw.col.add_note(note, self.deckChooser.selectedId()) self.mw.col.clearUndo() self.addHistory(note) self.mw.requireReset()