aboutsummaryrefslogtreecommitdiff
path: root/src/forms/downloadswidget.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-09-27 11:44:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-09-27 11:44:05 +0200
commitef3ab866bc2d1c215eea90fba0651db7a6e87c43 (patch)
tree9c16f594bc3b20e6bf52a181126543ed826fe974 /src/forms/downloadswidget.cpp
parentPassing full arguments to running instance (diff)
downloadsmolbote-ef3ab866bc2d1c215eea90fba0651db7a6e87c43.tar.xz
Code cleanup
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