Download Manager: Fix storing last download path

remotes/origin/falkon
David Rosca 10 years ago
parent d1f266cc49
commit 6280d34e70
  1. 2
      src/lib/downloads/downloadmanager.cpp

@ -230,6 +230,8 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
case 2: // Save
downloadPath = QFileDialog::getSaveFileName(mApp->activeWindow(), tr("Save file as..."), m_lastDownloadPath + fileName);
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
m_lastDownloadOption = SaveFile;
break;

Loading…
Cancel
Save