Squish: Fix if statement with empty body

Change-Id: Ibf8ab419e26f896e3eabfb9c42c86ca87cd2801d
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Alessandro Portale
2022-10-17 15:23:28 +02:00
parent 5b287c9210
commit ceee8f4505

View File

@@ -44,7 +44,7 @@ SquishSettings::SquishSettings()
squishPath.setPlaceHolderText(Tr::tr("Path to Squish installation")); squishPath.setPlaceHolderText(Tr::tr("Path to Squish installation"));
squishPath.setValidationFunction([this](FancyLineEdit *edit, QString *error) { squishPath.setValidationFunction([this](FancyLineEdit *edit, QString *error) {
QTC_ASSERT(edit, return false); QTC_ASSERT(edit, return false);
if (!squishPath.pathChooser()->defaultValidationFunction()(edit, error)); if (!squishPath.pathChooser()->defaultValidationFunction()(edit, error))
return false; return false;
const FilePath squishServer = FilePath::fromString(edit->text()) const FilePath squishServer = FilePath::fromString(edit->text())
.pathAppended(HostOsInfo::withExecutableSuffix("bin/squishserver")); .pathAppended(HostOsInfo::withExecutableSuffix("bin/squishserver"));