Don't warn if everything is fine

This commit is contained in:
Hannah von Reth 2020-12-09 11:19:30 +01:00 committed by Kevin Ottens
parent 4e373ca7ff
commit c03a5da670
No known key found for this signature in database
GPG key ID: 074BBBCB8DECC9E2

View file

@ -391,9 +391,7 @@ static void propertyMapToRemoteInfo(const QMap<QString, QString> &map, RemoteInf
result.isDirectory = value.contains(QLatin1String("collection"));
} else if (property == QLatin1String("getlastmodified")) {
const auto date = QDateTime::fromString(value, Qt::RFC2822Date);
if (date.isValid()) {
qCCritical(lcDiscovery) << "Failed to parse getlastmodified:" << value;
}
Q_ASSERT(date.isValid());
result.modtime = date.toTime_t();
} else if (property == QLatin1String("getcontentlength")) {
// See #4573, sometimes negative size values are returned