summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-06-15 14:43:48 +0300
committerArttu Tarkiainen <arttu.tarkiainen@qt.io>2021-06-16 11:45:25 +0300
commit88941150c353b4386d9eb478388affe2d49f6be9 (patch)
treef565b4794e8b3776c2d6037ce97e3481e903bf24
parenteb18ef9b8511297d1acdcfdee189c9c037e0af1c (diff)
Clarify required user actions when there is an essential update
Task-number: QTIFW-2244 Change-Id: Ib3c717eb7fd76bdc928072630177c71933e8aef1 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
-rw-r--r--src/libs/installer/packagemanagergui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp
index d52034389..d761c0950 100644
--- a/src/libs/installer/packagemanagergui.cpp
+++ b/src/libs/installer/packagemanagergui.cpp
@@ -1621,6 +1621,10 @@ bool IntroductionPage::validatePage()
error = QLatin1String("<font color=\"red\">") + error + tr(" Only local package "
"management available.") + QLatin1String("</font>");
}
+ } else if (core->status() == PackageManagerCore::ForceUpdate) {
+ // replaces the error string from packagemanagercore
+ error = tr("There is an important update available. Please select '%1' first")
+ .arg(m_updateComponents->text().remove(QLatin1Char('&')));
}
setErrorMessage(error);
}