From 21ac396bd1b2fb88763901bbafb36474e244c4f5 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 4 Dec 2018 15:21:49 +0100 Subject: [PATCH] Updater: show the human readable version in the settings The xml looks like this: 2.5.0.328 ownCloud Client 2.5.0 alpha1 (build 238) And we should show the version string Issue #6602 --- src/gui/updater/ocupdater.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 59a24e6edd..151e41b8b9 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -141,19 +141,19 @@ void OCUpdater::backgroundCheckForUpdate() QString OCUpdater::statusString() const { - QString updateVersion = _updateInfo.version(); + QString updateVersion = _updateInfo.versionString(); switch (downloadState()) { case Downloading: - return tr("Downloading version %1. Please wait...").arg(updateVersion); + return tr("Downloading %1. Please wait...").arg(updateVersion); case DownloadComplete: - return tr("%1 version %2 available. Restart application to start the update.").arg(Theme::instance()->appNameGUI(), updateVersion); + return tr("%1 available. Restart application to start the update.").arg(Theme::instance()->appNameGUI(), updateVersion); case DownloadFailed: return tr("Could not download update. Please click here to download the update manually.").arg(_updateInfo.web()); case DownloadTimedOut: return tr("Could not check for new updates."); case UpdateOnlyAvailableThroughSystem: - return tr("New %1 version %2 available. Please use the system's update tool to install it.").arg(Theme::instance()->appNameGUI(), updateVersion); + return tr("New %1 available. Please use the system's update tool to install it.").arg(updateVersion); case CheckingServer: return tr("Checking update server..."); case Unknown: