aboutsummaryrefslogtreecommitdiff
path: root/src/forms/downloadswidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/forms/downloadswidget.cpp')
-rw-r--r--src/forms/downloadswidget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/forms/downloadswidget.cpp b/src/forms/downloadswidget.cpp
index ab1d6c0..008e371 100644
--- a/src/forms/downloadswidget.cpp
+++ b/src/forms/downloadswidget.cpp
@@ -46,7 +46,9 @@ DownloadsWidget::~DownloadsWidget()
void DownloadsWidget::addDownload(QWebEngineDownloadItem *item)
{
- QString filepath = QFileDialog::getSaveFileName(this, tr("Save"), sSettings->value("downloads.path").toString() + "/" + QFileInfo(item->path()).fileName());
+ QString filepath = QFileDialog::getSaveFileName(this,
+ tr("Save"),
+ browser->settings()->value("downloads.path").toString() + "/" + QFileInfo(item->path()).fileName());
if(filepath.isEmpty()) {
// user cancelled the save dialog