Database: Fix FS#13368 – use separate selected item history

Database and File Browser were sharing
each other’s selected item history before.

Since the database isn’t browsed
recursively, it’s probably unnecessary to
include its own history in the tree context
and its backups, saving.a little bit of memory.

Change-Id: I87c9aed6f7056bc481b8b7299089851ef28f9bc5
This commit is contained in:
Christian Soffke 2022-10-31 20:57:09 +01:00 committed by Aidan MacDonald
parent 59f3f43d10
commit ca908d6336
3 changed files with 13 additions and 9 deletions

View file

@ -90,8 +90,6 @@ struct tree_context {
int dirsindir; /* file use */
int dirlength; /* total number of entries in dir, incl. those not loaded */
#ifdef HAVE_TAGCACHE
int table_history[MAX_DIR_LEVELS]; /* db use */
int extra_history[MAX_DIR_LEVELS]; /* db use */
int currtable; /* db use */
int currextra; /* db use */
#endif