Browse Source

force cleanup previous records

CPP-GTK4
yggverse 2 months ago
parent
commit
ab21f58adb
  1. 7
      src/app/browser/main/tab/page/navigation/request.cpp

7
src/app/browser/main/tab/page/navigation/request.cpp

@ -132,6 +132,13 @@ int Request::restore( @@ -132,6 +132,13 @@ int Request::restore(
int Request::save(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
) {
// Delete previous records
DB::SESSION::clean(
db,
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID
);
// Add new record
return DB::SESSION::add(
db,
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,

Loading…
Cancel
Save