From f2fa812b0b0e9374d25f6d242075afb84b2c8ec2 Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Mon, 30 Mar 2015 14:38:19 +0200 Subject: [PATCH] Updater: Give context as to which app is about to be updated Fixes #3040 --- src/gui/updater/ocupdater.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/updater/ocupdater.cpp b/src/gui/updater/ocupdater.cpp index 0d4ee29ed..04c2ef5c5 100644 --- a/src/gui/updater/ocupdater.cpp +++ b/src/gui/updater/ocupdater.cpp @@ -52,9 +52,10 @@ bool OCUpdater::performUpdate() QSettings settings(cfg.configFile(), QSettings::IniFormat); QString updateFile = settings.value(updateAvailableC).toString(); if (!updateFile.isEmpty() && QFile(updateFile).exists()) { - if (QMessageBox::information(0, tr("New Update Ready"), - tr("A new update is about to be installed. The updater may ask\n" - "for additional privileges during the process."), QMessageBox::Ok)) { + const QString name = Theme::instance()->appNameGUI(); + if (QMessageBox::information(0, tr("New %1 Update Ready").arg(name), + tr("A new update for %1 is about to be installed. The updater may ask\n" + "for additional privileges during the process.").arg(name), QMessageBox::Ok)) { slotStartInstaller(); return true; } -- 2.30.2