From a90fb33cc7ca4ab70c7899f97a6fd96c57b0780a Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Mon, 20 Jul 2020 10:19:15 +0200 Subject: [PATCH] (Windows) Fixed an issue where the date was shown as unknown during scraping. --- es-app/src/guis/GuiScraperSearch.cpp | 6 ++++-- es-app/src/guis/GuiScraperSearch.h | 2 +- es-core/src/components/DateTimeEditComponent.cpp | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/es-app/src/guis/GuiScraperSearch.cpp b/es-app/src/guis/GuiScraperSearch.cpp index 8fc1ea26d..1d218c877 100644 --- a/es-app/src/guis/GuiScraperSearch.cpp +++ b/es-app/src/guis/GuiScraperSearch.cpp @@ -7,7 +7,7 @@ // to resolve scraping conflicts when run from GuiScraperMenu. // The function to properly save scraped metadata is located here too. // -// This component is called from GuiGameScraper for single-game scraping and +// This GUI is called from GuiGameScraper for single-game scraping and // from GuiScraperMulti for multi-game scraping. // @@ -414,7 +414,9 @@ void GuiScraperSearch::updateInfoPane() mMD_Rating->setValue(""); mMD_Rating->setOpacity(0); } - mMD_ReleaseDate->setValue("99990101T000000"); + // Set the release date to this value to force DateTimeEditComponent to put a + // blank instead of the text 'unknown' prior to the scrape result being returned. + mMD_ReleaseDate->setValue("19700101T010101"); mMD_Developer->setText(""); mMD_Publisher->setText(""); mMD_Genre->setText(""); diff --git a/es-app/src/guis/GuiScraperSearch.h b/es-app/src/guis/GuiScraperSearch.h index 78e62a04c..636451bbb 100644 --- a/es-app/src/guis/GuiScraperSearch.h +++ b/es-app/src/guis/GuiScraperSearch.h @@ -7,7 +7,7 @@ // to resolve scraping conflicts when run from GuiScraperMenu. // The function to properly save scraped metadata is located here too. // -// This component is called from GuiGameScraper for single-game scraping and +// This GUI is called from GuiGameScraper for single-game scraping and // from GuiScraperMulti for multi-game scraping. // diff --git a/es-core/src/components/DateTimeEditComponent.cpp b/es-core/src/components/DateTimeEditComponent.cpp index 03dd0abff..d162bdd07 100644 --- a/es-core/src/components/DateTimeEditComponent.cpp +++ b/es-core/src/components/DateTimeEditComponent.cpp @@ -261,7 +261,7 @@ void DateTimeEditComponent::updateTextCache() // Hack to set date string to blank instead of 'unknown'. // The calling function simply needs to set this string using setValue(). - if (mTime.getIsoString() == "99990101T000000") { + if (mTime.getIsoString() == "19700101T010101") { dispString = ""; } else {