close all tabs before session restore

This commit is contained in:
yggverse 2024-09-10 00:04:00 +03:00
parent df42e96e95
commit 800bf7126b

View file

@ -83,6 +83,8 @@ void Tab::session_restore()
if (PREPARE == SQLITE_OK) if (PREPARE == SQLITE_OK)
{ {
close_all();
while (::sqlite3_step(statement) == SQLITE_ROW) while (::sqlite3_step(statement) == SQLITE_ROW)
{ {
const int PAGE_NUMBER = append(); const int PAGE_NUMBER = append();