aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/connection.cpp2
-rw-r--r--tests/quotest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 9dad3c22..a12b1fb5 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -1543,7 +1543,7 @@ void Connection::setHomeserver(const QUrl& url)
// Whenever a homeserver is updated, retrieve available login flows from it
d->loginFlowsJob = callApi<GetLoginFlowsJob>(BackgroundRequest);
- connect(d->loginFlowsJob, &BaseJob::finished, this, [this] {
+ connect(d->loginFlowsJob, &BaseJob::result, this, [this] {
if (d->loginFlowsJob->status().good())
d->loginFlows = d->loginFlowsJob->flows();
else
diff --git a/tests/quotest.cpp b/tests/quotest.cpp
index edf0e014..a1c13ae1 100644
--- a/tests/quotest.cpp
+++ b/tests/quotest.cpp
@@ -831,7 +831,7 @@ void TestManager::conclude()
// .then(this, &TestManager::finalize); // Qt-style or
// .then([this] { finalize(); }); // STL-style
auto* job = room->leaveRoom();
- connect(job, &BaseJob::finished, this, [this, job,plainReport] {
+ connect(job, &BaseJob::result, this, [this, job,plainReport] {
Q_ASSERT(job->status().good());
finalize();
// Still flying, as the exit() connection in finalize() is queued