mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-07-04 20:56:00 +08:00
Fix Bugs
Fix a bug when 'save as' file dialog is canceled, next download will be blocked.
This commit is contained in:
parent
77a999e22e
commit
f6542879de
@ -312,6 +312,7 @@ void MainWindow::on_downloadStart(QWebEngineDownloadItem *item)
|
|||||||
QString filePath = saveAs(fileName);
|
QString filePath = saveAs(fileName);
|
||||||
if(filePath.isEmpty())
|
if(filePath.isEmpty())
|
||||||
{
|
{
|
||||||
|
mutex.unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
item->setPath(filePath);
|
item->setPath(filePath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user