Improved error reporting
This commit is contained in:
parent
6cf7b52453
commit
457b09f15c
12 changed files with 110 additions and 94 deletions
|
|
@ -254,13 +254,18 @@ void ConnectionConfigurationWidget::testConnection()
|
|||
cc.setPassword(password);
|
||||
|
||||
auto qthis = QPointer(this);
|
||||
QFuture<void> result = QtConcurrent::run([cc] {
|
||||
return TestConnection(cc);
|
||||
}).then(qApp, [qthis](TestConnectionResult result) {
|
||||
if (qthis) {
|
||||
qthis.data()->handleTestResult(result);
|
||||
QFuture<void> result = QtConcurrent::run(
|
||||
[cc]
|
||||
{
|
||||
return TestConnection(cc);
|
||||
}
|
||||
});
|
||||
).then(qApp,
|
||||
[qthis](TestConnectionResult result)
|
||||
{
|
||||
if (qthis)
|
||||
qthis.data()->handleTestResult(result);
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void ConnectionConfigurationWidget::handleTestResult(TestConnectionResult result)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue