From e5c3d25316e086c5a90f772ac5c189297cc80e4e Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Sat, 6 Jul 2024 12:00:03 +0100 Subject: [PATCH] [Base] Give user feedback on failing to read StringHasherTable --- src/Base/Reader.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Base/Reader.cpp b/src/Base/Reader.cpp index f172b18c78..257dc63d8d 100644 --- a/src/Base/Reader.cpp +++ b/src/Base/Reader.cpp @@ -38,6 +38,7 @@ #include "Persistence.h" #include "Sequencer.h" #include "Stream.h" +#include "Tools.h" #include "XMLTools.h" #ifdef _MSC_VER @@ -437,6 +438,13 @@ void Base::XMLReader::readFiles(zipios::ZipInputStream& zipstream) const // failure. Base::Console().Error("Reading failed from embedded file: %s\n", entry->toString().c_str()); + if (jt->FileName == "StringHasher.Table.txt") { + Base::Console().Error(QT_TRANSLATE_NOOP( + "Notifications", + "\nIt is recommended that the user right-click the root of " + "the document and select Mark to recompute.\n" + "The user should then click the Refresh button in the main toolbar.\n")); + } } // Go to the next registered file name it = jt + 1;