Updater: Give context as to which app is about to be updated
authorDaniel Molkentin <danimo@owncloud.com>
Mon, 30 Mar 2015 12:38:19 +0000 (14:38 +0200)
committerDaniel Molkentin <danimo@owncloud.com>
Mon, 30 Mar 2015 12:44:34 +0000 (14:44 +0200)
Fixes #3040

src/gui/updater/ocupdater.cpp

index 0d4ee29ed0f10c820fba586d8e778a872da1fb21..04c2ef5c59253a7e3b89ff498e1a97372e28ace8 100644 (file)
@@ -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;
         }