aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 18:08:56 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2017-12-20 18:08:56 +0100
commit2abe26db203c75798775a42eae2d7dc7ab9bf354 (patch)
treecf273c92e1fdc68fcca90409bad160b4d7fe27e6 /src/lib
parentAdded SSL cert warnings (diff)
downloadsmolbote-2abe26db203c75798775a42eae2d7dc7ab9bf354.tar.xz
Bug fixes
.config/smolbote will now be created if missing Connected profiles to download manager Added missing license from WebPage
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/downloads/downloadswidget.cpp6
-rw-r--r--src/lib/downloads/downloadswidget.h2
2 files changed, 3 insertions, 5 deletions
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 <QLabel>
#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;
}
diff --git a/src/lib/downloads/downloadswidget.h b/src/lib/downloads/downloadswidget.h
index a6dcf71..a601147 100644
--- a/src/lib/downloads/downloadswidget.h
+++ b/src/lib/downloads/downloadswidget.h
@@ -21,7 +21,7 @@ class DownloadsWidget : public QWidget
Q_OBJECT
public:
- explicit DownloadsWidget(const QString path, QWidget *parent = 0);
+ explicit DownloadsWidget(const QString &downloadPath, QWidget *parent = nullptr);
~DownloadsWidget();
public slots: