aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2018-04-25 15:06:37 +0200
committerTobias Hunger <tobias.hunger@qt.io>2018-04-25 14:19:49 +0000
commit4146a9859907c561864bfbd412d8b65ed69216ad (patch)
treea25b4b6e4a52c1cbe6803d90ada3c8f801f0426c /src/libs/utils
parentd2a44be0ff5f49518f692fed384a0a5751b32420 (diff)
PathChooser: Remove wrong comments
Change-Id: I2cd240ff79747dc8e3bac164beb3353960d0dc1e Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/libs/utils')
-rw-r--r--src/libs/utils/pathchooser.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libs/utils/pathchooser.cpp b/src/libs/utils/pathchooser.cpp
index 1e5f85c000a..202d9618f87 100644
--- a/src/libs/utils/pathchooser.cpp
+++ b/src/libs/utils/pathchooser.cpp
@@ -521,7 +521,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
// Check if existing
switch (d->m_acceptingKind) {
- case PathChooser::ExistingDirectory: // fall through
+ case PathChooser::ExistingDirectory:
if (!fi.exists()) {
if (errorMessage)
*errorMessage = tr("The path \"%1\" does not exist.").arg(QDir::toNativeSeparators(expandedPath));
@@ -533,7 +533,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
return false;
}
break;
- case PathChooser::File: // fall through
+ case PathChooser::File:
if (!fi.exists()) {
if (errorMessage)
*errorMessage = tr("The path \"%1\" does not exist.").arg(QDir::toNativeSeparators(expandedPath));
@@ -576,7 +576,7 @@ bool PathChooser::validatePath(FancyLineEdit *edit, QString *errorMessage) const
return false;
}
break;
- case PathChooser::Command: // fall through
+ case PathChooser::Command:
if (fi.exists() && !fi.isExecutable()) {
if (errorMessage)
*errorMessage = tr("Cannot execute \"%1\".").arg(QDir::toNativeSeparators(expandedPath));