Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwurstsalat <mailtrash@posteo.de>2023-11-28 01:41:19 +0300
committerwurstsalat <mailtrash@posteo.de>2023-11-28 01:41:19 +0300
commit0f1871b3c9f9c390a7343b908d62fa9e7abae29e (patch)
treee556e57ac4d93a16fd9a9fd8d6f29005433bdbcc
parent66c8ce2fd8a753073160d1adcceb9e9eca19760a (diff)
cfix: DBMigration: Fix testsstorage
-rw-r--r--gajim/common/storage/archive/storage.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/gajim/common/storage/archive/storage.py b/gajim/common/storage/archive/storage.py
index f3f15b486..db910cf67 100644
--- a/gajim/common/storage/archive/storage.py
+++ b/gajim/common/storage/archive/storage.py
@@ -66,7 +66,7 @@ from gajim.common.storage.base import SqliteStorage
from gajim.common.storage.base import timeit
from gajim.common.storage.base import VALUE_MISSING
-from gajim.gtk.util import open_window
+from gajim.gtk.db_migration import DBMigration
CURRENT_USER_VERSION = 7
@@ -193,11 +193,8 @@ class MessageArchiveStorage(SqliteStorage):
self._execute_multiple(statements)
if user_version < 8:
- open_window(
- 'DBMigration',
- migration_routine=MigrationV8,
- db_connection=self._con,
- db_path=self._path)
+ if self._path is not None:
+ DBMigration(MigrationV8, self._con, self._path)
@staticmethod
def _like(search_str: str) -> str: