fix: incorrect default path setting for dl items (#17773)

This commit is contained in:
Shelley Vohr 2019-04-15 21:11:20 +03:00 committed by Samuel Attard
parent 258d337cf8
commit 82a076855b

View file

@ -113,7 +113,7 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
settings.parent_window = window;
if (settings.title.size() == 0)
settings.title = item->GetURL().spec();
if (!settings.default_path.empty())
if (settings.default_path.empty())
settings.default_path = default_path;
auto* web_preferences = WebContentsPreferences::From(web_contents);