From d03e13a1bdcc1cf55932085c491d5117a79e75b6 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 14 Mar 2020 09:50:06 +1000 Subject: [PATCH] reuse the existing backend instead of creating a new one --- qt/aqt/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/main.py b/qt/aqt/main.py index ed56974c3..2fa5c4f53 100644 --- a/qt/aqt/main.py +++ b/qt/aqt/main.py @@ -462,7 +462,7 @@ close the profile or restart Anki.""" def _loadCollection(self) -> bool: cpath = self.pm.collectionPath() - self.col = Collection(cpath) + self.col = Collection(cpath, backend=self.backend) self.setEnabled(True) self.maybeEnableUndo() @@ -471,7 +471,7 @@ close the profile or restart Anki.""" def reopen(self): cpath = self.pm.collectionPath() - self.col = Collection(cpath) + self.col = Collection(cpath, backend=self.backend) def unloadCollection(self, onsuccess: Callable) -> None: def callback():