Fix a bug when 'save as' file dialog is canceled, next download will be blocked.
This commit is contained in:
zty199 2021-05-09 00:35:05 +08:00
parent 77a999e22e
commit f6542879de

@ -312,6 +312,7 @@ void MainWindow::on_downloadStart(QWebEngineDownloadItem *item)
QString filePath = saveAs(fileName);
if(filePath.isEmpty())
{
mutex.unlock();
return;
}
item->setPath(filePath);