mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-04-10 19:15:13 +00:00
Another go at fixing a crash after scraping.
This commit is contained in:
parent
c75ce3c8b0
commit
42c07ee4c5
|
@ -658,7 +658,7 @@ void GuiMetaDataEd::save()
|
||||||
if (mScraperParams.game->getType() == FOLDER)
|
if (mScraperParams.game->getType() == FOLDER)
|
||||||
mScraperParams.system->sortSystem(false);
|
mScraperParams.system->sortSystem(false);
|
||||||
|
|
||||||
if (mSavedCallback)
|
if (mSavedCallback && !mSavedMediaAndAborted)
|
||||||
mSavedCallback();
|
mSavedCallback();
|
||||||
|
|
||||||
if (hideGameWhileHidden) {
|
if (hideGameWhileHidden) {
|
||||||
|
|
|
@ -52,7 +52,9 @@ public:
|
||||||
SearchType getSearchType() const { return mSearchType; }
|
SearchType getSearchType() const { return mSearchType; }
|
||||||
bool getSavedNewMedia()
|
bool getSavedNewMedia()
|
||||||
{
|
{
|
||||||
return (mMDResolveHandle ? mMDResolveHandle->getSavedNewMedia() : false);
|
if (mMDResolveHandle != nullptr)
|
||||||
|
return mMDResolveHandle->getSavedNewMedia();
|
||||||
|
return mScrapeResult.savedNewMedia;
|
||||||
}
|
}
|
||||||
static bool saveMetadata(const ScraperSearchResult& result,
|
static bool saveMetadata(const ScraperSearchResult& result,
|
||||||
MetaDataList& metadata,
|
MetaDataList& metadata,
|
||||||
|
|
Loading…
Reference in a new issue