fixed warning with QFutureWatcher

- renamed readWireguardConfiguration function to match what it does
This commit is contained in:
vladimir.kuznetsov 2023-01-24 09:43:12 +03:00
parent e7ed532545
commit ee609f3e8f
3 changed files with 4 additions and 5 deletions

View file

@ -549,10 +549,9 @@ ErrorCode ServerController::installDockerWorker(const ServerCredentials &credent
return ErrorCode::NoError;
});
watcher.setFuture(future);
QEventLoop wait;
QObject::connect(&watcher, &QFutureWatcher<ErrorCode>::finished, &wait, &QEventLoop::quit);
watcher.setFuture(future);
wait.exec();
m_cancelInstallation = false;