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:
Diffstat (limited to 'gajim/common/storage/archive/storage.py')
-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: