diff options
author | Daniele Bortolotti <daniele.bortolotti@qt.io> | 2022-11-02 16:41:59 +0100 |
---|---|---|
committer | Daniele Bortolotti <daniele.bortolotti@qt.io> | 2022-11-03 12:28:20 +0000 |
commit | 8de9892c4e877ea7b46940bfc25f203e789de994 (patch) | |
tree | e2ca8f464eda45f402f51fc9455baa46f0045ff4 | |
parent | 0d1e1ebab692fba92bdf3a4e678f57cd915763a2 (diff) | |
download | qt-creator-8de9892c4e877ea7b46940bfc25f203e789de994.tar.gz |
McuSupport: Improve message box warning
The message box might show up when applying changes in other settings
pages if the user left the Devices > MCU tab with invalid fields.
Improve the warning message with settings page and target name.
Change-Id: I335fadd3b5d4c6be10c6bd5100d6aac3c50017f2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Sivert Krøvel <sivert.krovel@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
-rw-r--r-- | src/plugins/mcusupport/mcusupportoptionspage.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/mcusupport/mcusupportoptionspage.cpp b/src/plugins/mcusupport/mcusupportoptionspage.cpp index f317026c07..7f594d03e0 100644 --- a/src/plugins/mcusupport/mcusupportoptionspage.cpp +++ b/src/plugins/mcusupport/mcusupportoptionspage.cpp @@ -293,7 +293,7 @@ void McuSupportOptionsWidget::apply() QMessageBox warningPopup(QMessageBox::Icon::Warning, Tr::tr("Warning"), - Tr::tr("Unable to apply changes."), + Tr::tr("Unable to apply changes in Devices > MCU."), QMessageBox::Ok, this); @@ -304,7 +304,9 @@ void McuSupportOptionsWidget::apply() return; } if (!target->isValid()) { - warningPopup.setInformativeText(Tr::tr("Invalid path(s) present.")); + warningPopup.setInformativeText( + Tr::tr("Invalid paths present for target\n%1") + .arg(McuKitManager::generateKitNameFromTarget(target.get()))); warningPopup.exec(); return; } |