close preview window on collection close

This commit is contained in:
Damien Elmes 2017-09-08 19:44:13 +10:00
parent 35923630bf
commit 5bd2e10f3c

View file

@ -1217,6 +1217,7 @@ where id in %s""" % ids2str(sf))
self._previewWindow.setWindowTitle(_("Preview"))
self._previewWindow.finished.connect(self._onPreviewFinished)
self._previewWindow.silentlyClose = True
vbox = QVBoxLayout()
vbox.setContentsMargins(0,0,0,0)
self._previewWeb = AnkiWebView()