diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2021-09-17 17:54:08 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2021-09-21 10:35:35 +0300 |
commit | 4951b52ac6d62cf6b2601e908d397063d47c489d (patch) | |
tree | 5c3b6848d55e5f1dc99a058f0b132b20f1d33331 /test/testutils | |
parent | 37dbdc9cea118b947dacdae34000967aa7a097a5 (diff) |
Fix migration on minor url format changes like…
…https://demo.owncloud.org/ to https://demo.owncloud.org
This commit also removed the infix from the cmd client, as it is to unreliable.
Diffstat (limited to 'test/testutils')
-rw-r--r-- | test/testutils/testutils.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/testutils/testutils.cpp b/test/testutils/testutils.cpp index 281323073..0d2c5d43d 100644 --- a/test/testutils/testutils.cpp +++ b/test/testutils/testutils.cpp @@ -47,11 +47,11 @@ namespace TestUtils { FolderMan *folderMan() { - static FolderMan *man = [] { - auto man = new FolderMan; + static QPointer<FolderMan> man; + if (!man) { + man = new FolderMan; QObject::connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, man, &FolderMan::deleteLater); - return man; - }(); + }; return man; } |