From 991cc47d29a91e27baf74d350c09bec23669fa16 Mon Sep 17 00:00:00 2001 From: hjk Date: Thu, 17 Apr 2025 08:49:55 +0200 Subject: [PATCH] Designer: Simplify read error handling The special encoding error handling is covered by the general non-success handling. Change-Id: Iee7186a54d80108ecbf5fb327a15a03d7a360b9f Reviewed-by: David Schulz --- src/plugins/designer/formwindowfile.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/plugins/designer/formwindowfile.cpp b/src/plugins/designer/formwindowfile.cpp index cb45999faac..53595763bc1 100644 --- a/src/plugins/designer/formwindowfile.cpp +++ b/src/plugins/designer/formwindowfile.cpp @@ -56,8 +56,6 @@ Result<> FormWindowFile::open(const FilePath &filePath, const FilePath &realFile QString contents; TextFileFormat::ReadResult readResult = read(filePath.absoluteFilePath(), &contents); - if (readResult.code == TextFileFormat::ReadEncodingError) - return ResultError(readResult.error); if (readResult.code != TextFileFormat::ReadSuccess) return ResultError(readResult.error);