diff --git a/tests/system/suite_editors/tst_qml_indent/test.py b/tests/system/suite_editors/tst_qml_indent/test.py index cee3d0a3c0b..be0d8968f95 100644 --- a/tests/system/suite_editors/tst_qml_indent/test.py +++ b/tests/system/suite_editors/tst_qml_indent/test.py @@ -37,11 +37,8 @@ def main(): # using a temporary directory won't mess up a potentially existing createNewQtQuickApplication(tempDir(), "untitled") originalText = prepareQmlFile() - if not originalText: - invokeMenuItem("File", "Save All") - invokeMenuItem("File", "Exit") - return - testReIndent(originalText) + if originalText: + testReIndent(originalText) invokeMenuItem("File", "Save All") invokeMenuItem("File", "Exit")