From 6c362a259cbc7ded87276d7c96666c6a289c6719 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 12 Oct 2022 06:24:14 +0200 Subject: [PATCH] Squish: Fix condition Amends 5c4441a7607456785. Change-Id: I1e4148196c6e904d62fd4ce160db517c9c75d1e9 Reviewed-by: David Schulz --- src/plugins/squish/suiteconf.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/plugins/squish/suiteconf.cpp b/src/plugins/squish/suiteconf.cpp index 787f14698ea..17e7c383f52 100644 --- a/src/plugins/squish/suiteconf.cpp +++ b/src/plugins/squish/suiteconf.cpp @@ -291,9 +291,7 @@ bool SuiteConf::ensureObjectMapExists() const { if (m_objectMapStyle != "script") { const Utils::FilePath objectMap = objectMapPath(); - bool ok = objectMap.parentDir().ensureWritableDir(); - ok |= objectMap.ensureExistingFile(); - return ok; + return objectMap.parentDir().ensureWritableDir() && objectMap.ensureExistingFile(); } const Utils::FilePath scripts = SquishPlugin::squishSettings()->scriptsPath(language());