aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/projectintropage.cpp
diff options
context:
space:
mode:
authorChristian Stenger <[email protected]>2024-05-29 11:51:35 +0200
committerChristian Stenger <[email protected]>2024-05-29 12:01:58 +0000
commit26030bf0a89fc51801b18a3e2e8f9d2209a3f865 (patch)
tree039c07468e2aea4cf46b2c9696b4f25aa5289d0f /src/libs/utils/projectintropage.cpp
parentded8cf3fdbfae0c1093be6f962b8ea2f94e3010e (diff)
Wizards: Only show error message if not empty
The path chooser may be invalid while initializing the page and shortly display the empty message before becoming valid. At the moment no harm, as the path chooser is not used actively. Change-Id: I0c0701c05262e35f550b40dcb03329b6e2308587 Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/libs/utils/projectintropage.cpp')
-rw-r--r--src/libs/utils/projectintropage.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libs/utils/projectintropage.cpp b/src/libs/utils/projectintropage.cpp
index 1ec503b7acf..7a42b7280c1 100644
--- a/src/libs/utils/projectintropage.cpp
+++ b/src/libs/utils/projectintropage.cpp
@@ -201,7 +201,8 @@ bool ProjectIntroPage::validate()
}
// Validate and display status
if (!d->m_pathChooser->isValid()) {
- displayStatusMessage(InfoLabel::Error, d->m_pathChooser->errorMessage());
+ if (const QString msg = d->m_pathChooser->errorMessage(); !msg.isEmpty())
+ displayStatusMessage(InfoLabel::Error, msg);
return false;
}