Skip to content

Commit

Permalink
fix(registry): save non-zero docset revision in meta.json
Browse files Browse the repository at this point in the history
Regression introduced in a fix for #1532.

Fixes #1559.
  • Loading branch information
trollixx committed Oct 7, 2023
1 parent f2212eb commit 2cefcd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/registry/docsetmetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2cefcd4

Please sign in to comment.