From f6542879de1558afe18c9755996d3c4dd05ac08e Mon Sep 17 00:00:00 2001 From: zty199 <46324746+zty199@users.noreply.github.com> Date: Sun, 9 May 2021 00:35:05 +0800 Subject: [PATCH] Fix Bugs Fix a bug when 'save as' file dialog is canceled, next download will be blocked. --- spark-webapp-runtime/mainwindow.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/spark-webapp-runtime/mainwindow.cpp b/spark-webapp-runtime/mainwindow.cpp index 4786926..0d5a97b 100644 --- a/spark-webapp-runtime/mainwindow.cpp +++ b/spark-webapp-runtime/mainwindow.cpp @@ -312,6 +312,7 @@ void MainWindow::on_downloadStart(QWebEngineDownloadItem *item) QString filePath = saveAs(fileName); if(filePath.isEmpty()) { + mutex.unlock(); return; } item->setPath(filePath);