mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-22 21:53:03 +03:00
fix(registry): save non-zero docset revision in meta.json
Regression introduced in a fix for #1532. Fixes #1559.
This commit is contained in:
parent
f2212eb4f0
commit
2cefcd4542
@ -89,8 +89,8 @@ void DocsetMetadata::save(const QString &path, const QString &version)
|
||||
if (!version.isEmpty())
|
||||
jsonObject[QStringLiteral("version")] = version;
|
||||
|
||||
if (version == latestVersion() && m_revision == 0)
|
||||
jsonObject[QStringLiteral("revision")] = m_revision;
|
||||
if (version == latestVersion() && m_revision > 0)
|
||||
jsonObject[QStringLiteral("revision")] = QString::number(m_revision);
|
||||
|
||||
if (!m_feedUrl.isEmpty())
|
||||
jsonObject[QStringLiteral("feed_url")] = m_feedUrl.toString();
|
||||
|
Loading…
Reference in New Issue
Block a user