aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:39:28 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:44:21 +0100
commit41e57c9f1e44a47694eb1fc0725a8c8985780e0c (patch)
tree1a2d83fcf538d8a89e2336dee00c17442b0473b0 /lib
parentbe00308ad67286b45912202750fe49fb87f16e4a (diff)
downloadlibquotient-41e57c9f1e44a47694eb1fc0725a8c8985780e0c.tar.gz
libquotient-41e57c9f1e44a47694eb1fc0725a8c8985780e0c.zip
Connection: don't explicitly reset QPointers
See #437 for the discussion. (cherry picked from commit 6101971af86fdecd084759aa039b9d20a9d662a7)
Diffstat (limited to 'lib')
-rw-r--r--lib/connection.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index a61f1ada..3ed71bb4 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -1534,10 +1534,8 @@ void Connection::setHomeserver(const QUrl& url)
{
if (isJobRunning(d->resolverJob))
d->resolverJob->abandon();
- d->resolverJob = nullptr;
if (isJobRunning(d->loginFlowsJob))
d->loginFlowsJob->abandon();
- d->loginFlowsJob = nullptr;
d->loginFlows.clear();
if (homeserver() != url) {