Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannah von Reth <hannah.vonreth@owncloud.com>2021-04-14 16:47:23 +0300
committerHannah von Reth <vonreth@kde.org>2021-04-15 17:59:38 +0300
commitd210f32d075fc9afcb41b9606d675fab907a5b68 (patch)
tree0071e8e7c67863d07830903b4310fa18141c91bc /src/gui/socketapi
parent4dda87e9ec7748d4f143891a251468ef23450cd2 (diff)
Fix destruction order
Diffstat (limited to 'src/gui/socketapi')
-rw-r--r--src/gui/socketapi/socketuploadjob.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/socketapi/socketuploadjob.cpp b/src/gui/socketapi/socketuploadjob.cpp
index 23dac1483..0e67de382 100644
--- a/src/gui/socketapi/socketuploadjob.cpp
+++ b/src/gui/socketapi/socketuploadjob.cpp
@@ -63,7 +63,7 @@ void SocketUploadJob::start()
fail(tr("Local path must be a an absolute path"));
return;
}
- auto tmp = new QTemporaryFile(this);
+ auto tmp = new QTemporaryFile();
if (!tmp->open()) {
fail(tr("Failed to create temporary database"));
return;
@@ -72,6 +72,7 @@ void SocketUploadJob::start()
auto db = new SyncJournalDb(tmp->fileName(), this);
auto engine = new SyncEngine(account->account(), _localPath.endsWith(QLatin1Char('/')) ? _localPath : _localPath + QLatin1Char('/'), remotePath, db);
engine->setParent(db);
+ tmp->setParent(db);
for (const auto &i : excludes) {
engine->excludedFiles().addManualExclude(i.toString());