From 2abe26db203c75798775a42eae2d7dc7ab9bf354 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 20 Dec 2017 18:08:56 +0100 Subject: Bug fixes .config/smolbote will now be created if missing Connected profiles to download manager Added missing license from WebPage --- src/lib/downloads/downloadswidget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/lib/downloads/downloadswidget.cpp') diff --git a/src/lib/downloads/downloadswidget.cpp b/src/lib/downloads/downloadswidget.cpp index 0022ff9..460014f 100644 --- a/src/lib/downloads/downloadswidget.cpp +++ b/src/lib/downloads/downloadswidget.cpp @@ -16,7 +16,7 @@ #include #include "widgets/downloaditemwidget.h" -DownloadsWidget::DownloadsWidget(const QString path, QWidget *parent) : +DownloadsWidget::DownloadsWidget(const QString &downloadPath, QWidget *parent) : QWidget(parent), ui(new Ui::DownloadDialog) { @@ -27,15 +27,13 @@ DownloadsWidget::DownloadsWidget(const QString path, QWidget *parent) : ui->setupUi(this); ui->filePath->setWordWrap(true); - m_downloadPath = path; + m_downloadPath = downloadPath; connect(ui->listWidget, SIGNAL(currentRowChanged(int)), this, SLOT(showItemDetails(int))); } DownloadsWidget::~DownloadsWidget() { - qDebug("Destroying DownloadsManager"); - delete ui; } -- cgit v1.2.1