aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-25 09:33:56 +0300
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2024-04-25 19:55:23 +0300
commite5d0441409491d84d8153c8650408ee1098e32ad (patch)
tree88a379dbbcd1b7b56749127163883d329afcc574 /tests
parent4375fff77441e11efc814a959950580d5b3645b5 (diff)
Automatically remove temporary files in svg manual test
To avoid cluttering the temp directory, temporary files should be deleted when they are closed. Change-Id: I2fe863f62e749b40aecb90e02fcfa91f1ec1a44f Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/manual/svg/svgmanager.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/manual/svg/svgmanager.cpp b/tests/manual/svg/svgmanager.cpp
index 2afac0399a..b8d49413a5 100644
--- a/tests/manual/svg/svgmanager.cpp
+++ b/tests/manual/svg/svgmanager.cpp
@@ -64,8 +64,6 @@ void SvgManager::setCurrentDirectory(const QString &newCurrentDirectory)
QString SvgManager::qmlSource() const
{
QTemporaryFile tempFile;
- tempFile.setAutoRemove(false);
-
if (tempFile.open()) {
QString name = tempFile.fileName();
{