Browse Source

force cleanup previous records

CPP-GTK4
yggverse 3 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(
int Request::save( int Request::save(
const sqlite3_int64 & APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID 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( return DB::SESSION::add(
db, db,
APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID, APP_BROWSER_MAIN_TAB_PAGE_NAVIGATION__SESSION__ID,

Loading…
Cancel
Save