From 800bf7126b1e2e7477921b1b378ef5687f9faefd Mon Sep 17 00:00:00 2001 From: yggverse Date: Tue, 10 Sep 2024 00:04:00 +0300 Subject: [PATCH] close all tabs before session restore --- src/app/browser/main/tab.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/browser/main/tab.cpp b/src/app/browser/main/tab.cpp index 19ec8a4c..b6f66b3e 100644 --- a/src/app/browser/main/tab.cpp +++ b/src/app/browser/main/tab.cpp @@ -83,6 +83,8 @@ void Tab::session_restore() if (PREPARE == SQLITE_OK) { + close_all(); + while (::sqlite3_step(statement) == SQLITE_ROW) { const int PAGE_NUMBER = append();