diff --git a/src/Gui/DocumentRecovery.cpp b/src/Gui/DocumentRecovery.cpp index fa097b7cc6..4af53f9bb4 100644 --- a/src/Gui/DocumentRecovery.cpp +++ b/src/Gui/DocumentRecovery.cpp @@ -484,7 +484,7 @@ DocumentRecoveryPrivate::XmlConfig DocumentRecoveryPrivate::readXmlFile(const QS while (!child.isNull()) { QString name = child.localName(); const QString value = child.text(); - if (std::ranges::find(filter, name) != filter.end()) + if (filter.contains(name)) cfg[name] = value; child = child.nextSiblingElement(); }