From 4146a9859907c561864bfbd412d8b65ed69216ad Mon Sep 17 00:00:00 2001 From: Tobias Hunger Date: Wed, 25 Apr 2018 15:06:37 +0200 Subject: [PATCH] PathChooser: Remove wrong comments Change-Id: I2cd240ff79747dc8e3bac164beb3353960d0dc1e Reviewed-by: hjk --- src/libs/utils/pathchooser.cpp | 6 +++--- 1 file 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));