summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/testrepository.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/installer/testrepository.cpp')
-rw-r--r--src/libs/installer/testrepository.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libs/installer/testrepository.cpp b/src/libs/installer/testrepository.cpp
index 6767d9aaa..637225e84 100644
--- a/src/libs/installer/testrepository.cpp
+++ b/src/libs/installer/testrepository.cpp
@@ -140,8 +140,10 @@ void TestRepository::downloadCompleted()
if (dlg.exec() == QDialog::Accepted) {
m_repository.setUsername(dlg.user());
m_repository.setPassword(dlg.password());
+ QMetaObject::invokeMethod(this, "doStart", Qt::QueuedConnection);
+ } else {
+ QMetaObject::invokeMethod(this, "doCancel", Qt::QueuedConnection);
}
- QMetaObject::invokeMethod(this, "doStart", Qt::QueuedConnection);
return;
} else if (e.type() == AuthenticationRequiredException::Type::Proxy) {
const QNetworkProxy proxy = e.proxy();