From c1a5fff98cab4adf04210ba8120459b8e87a8fa3 Mon Sep 17 00:00:00 2001 From: saturneric Date: Sun, 15 Oct 2023 16:17:28 +0800 Subject: fix: solve some issues on linux .desktop file --- src/ui/thread/ProxyConnectionTestTask.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui/thread/ProxyConnectionTestTask.cpp') diff --git a/src/ui/thread/ProxyConnectionTestTask.cpp b/src/ui/thread/ProxyConnectionTestTask.cpp index c7d623d7..d32bf2be 100644 --- a/src/ui/thread/ProxyConnectionTestTask.cpp +++ b/src/ui/thread/ProxyConnectionTestTask.cpp @@ -34,7 +34,7 @@ GpgFrontend::UI::ProxyConnectionTestTask::ProxyConnectionTestTask(QString url, network_manager_(new QNetworkAccessManager(this)) {} void GpgFrontend::UI::ProxyConnectionTestTask::run() { - SetFinishAfterRun(false); + HoldOnLifeCycle(true); auto* network_reply = network_manager_->get(QNetworkRequest{url_}); auto* timer = new QTimer(this); -- cgit v1.2.3