diff --git a/ankiqt/config.py b/ankiqt/config.py
index 1e93059e7..f500cc4e1 100644
--- a/ankiqt/config.py
+++ b/ankiqt/config.py
@@ -66,6 +66,7 @@ class Config(dict):
'showSuspendedCards': True,
'simpleToolbar': True,
'scrollToAnswer': True,
+ 'qaDivider': True,
}
for (k,v) in fields.items():
if not self.has_key(k):
diff --git a/ankiqt/ui/view.py b/ankiqt/ui/view.py
index e136544c2..35c651ce4 100644
--- a/ankiqt/ui/view.py
+++ b/ankiqt/ui/view.py
@@ -48,18 +48,23 @@ class View(object):
return
self.clearWindow()
self.setBackgroundColour()
+ self.haveTop = (self.main.lastCard and (
+ self.main.config['showLastCardContent'] or
+ self.main.config['showLastCardInterval']))
+ self.drawRule = (self.main.config['qaDivider'] and
+ not self.main.currentCard.cardModel.questionInAnswer)
if not self.main.deck.isEmpty():
- if not self.main.lastCard or (
- not self.main.config['showLastCardContent'] and
- not self.main.config['showLastCardInterval']):
- self.buffer += "
"
- else:
+ if self.haveTop:
self.drawTopSection()
if self.state == "showQuestion":
self.drawQuestion()
+ if self.drawRule:
+ self.write("