skip useless focus preservation when navigating via preview screen

This commit is contained in:
Damien Elmes 2017-08-01 17:46:08 +10:00
parent 9ec9274011
commit 61654ff70a

View File

@ -1072,7 +1072,7 @@ where id in %s""" % ids2str(sf))
self._previewState = "question"
self._renderPreview()
else:
self.onPreviousCard()
self.editor.saveNow(lambda: self._moveCur(QAbstractItemView.MoveUp))
self._updatePreviewButtons()
def _onPreviewNext(self):
@ -1080,7 +1080,7 @@ where id in %s""" % ids2str(sf))
self._previewState = "answer"
self._renderPreview()
else:
self.onNextCard()
self.editor.saveNow(lambda: self._moveCur(QAbstractItemView.MoveDown))
self._updatePreviewButtons()
def _onReplayAudio(self):