mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 22:25:38 +00:00
Fixed an issue where the multi-scraper would not update the filter index.
This commit is contained in:
parent
8dfe59ab93
commit
facc1d4c0a
|
@ -12,6 +12,7 @@
|
||||||
#include "guis/GuiScraperMulti.h"
|
#include "guis/GuiScraperMulti.h"
|
||||||
|
|
||||||
#include "CollectionSystemsManager.h"
|
#include "CollectionSystemsManager.h"
|
||||||
|
#include "FileFilterIndex.h"
|
||||||
#include "Gamelist.h"
|
#include "Gamelist.h"
|
||||||
#include "MameNames.h"
|
#include "MameNames.h"
|
||||||
#include "SystemData.h"
|
#include "SystemData.h"
|
||||||
|
@ -269,10 +270,13 @@ void GuiScraperMulti::acceptResult(const ScraperSearchResult& result)
|
||||||
{
|
{
|
||||||
ScraperSearchParams& search = mSearchQueue.front();
|
ScraperSearchParams& search = mSearchQueue.front();
|
||||||
|
|
||||||
GuiScraperSearch::saveMetadata(result, search.game->metadata, search.game);
|
search.system->getIndex()->removeFromIndex(search.game);
|
||||||
|
|
||||||
|
GuiScraperSearch::saveMetadata(result, search.game->metadata, search.game);
|
||||||
updateGamelist(search.system);
|
updateGamelist(search.system);
|
||||||
|
|
||||||
|
search.system->getIndex()->addToIndex(search.game);
|
||||||
|
|
||||||
mSearchQueue.pop();
|
mSearchQueue.pop();
|
||||||
mCurrentGame++;
|
mCurrentGame++;
|
||||||
mTotalSuccessful++;
|
mTotalSuccessful++;
|
||||||
|
|
Loading…
Reference in a new issue