From 2a8fd2f60bf9e06e9e5755c6e6d5d96d1f70f2cf Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sun, 18 Apr 2021 01:36:21 +1000 Subject: [PATCH] GameList: Fix database getting unloaded and lost on double refresh --- src/frontend-common/game_list.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend-common/game_list.cpp b/src/frontend-common/game_list.cpp index 1aa6a1eb1..800f4a671 100644 --- a/src/frontend-common/game_list.cpp +++ b/src/frontend-common/game_list.cpp @@ -627,7 +627,9 @@ void GameList::Refresh(bool invalidate_cache, bool invalidate_database, Progress // don't need unused cache entries CloseCacheFileStream(); m_cache_map.clear(); - m_database.Unload(); + + // we don't need to keep the db around anymore, it's quick enough to re-parse if needed anyway + ClearDatabase(); } void GameList::UpdateCompatibilityEntry(GameListCompatibilityEntry new_entry, bool save_to_list /*= true*/)