summaryrefslogtreecommitdiff
path: root/src/selfupdater.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/selfupdater.cpp')
-rw-r--r--src/selfupdater.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/selfupdater.cpp b/src/selfupdater.cpp
index 68aecc46..4b2894fd 100644
--- a/src/selfupdater.cpp
+++ b/src/selfupdater.cpp
@@ -165,9 +165,11 @@ void SelfUpdater::startUpdate()
auto latestRelease = m_UpdateCandidates.begin()->second;
- UpdateDialog dialog(m_Parent, tr("New update available (%1 -> %2)")
- .arg(MOShared::createVersionInfo().displayString(3))
- .arg(latestRelease["tag_name"].toString()));
+ UpdateDialog dialog(m_Parent);
+ dialog.setVersions(
+ MOShared::createVersionInfo().displayString(3),
+ latestRelease["tag_name"].toString()
+ );
// We concatenate release details. We only include pre-release if those are
// the latest release: