diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-27 11:44:05 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2017-09-27 11:44:05 +0200 |
commit | ef3ab866bc2d1c215eea90fba0651db7a6e87c43 (patch) | |
tree | 9c16f594bc3b20e6bf52a181126543ed826fe974 /src/forms/downloadswidget.cpp | |
parent | Passing full arguments to running instance (diff) | |
download | smolbote-ef3ab866bc2d1c215eea90fba0651db7a6e87c43.tar.xz |
Code cleanup
Diffstat (limited to 'src/forms/downloadswidget.cpp')
-rw-r--r-- | src/forms/downloadswidget.cpp | 4 |
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 |