mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
DownloadManager: Fix clearing download items
This commit is contained in:
parent
c24b0e92fd
commit
35f002efb4
@ -231,6 +231,8 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
|
|||||||
// Create download item
|
// Create download item
|
||||||
QListWidgetItem* listItem = new QListWidgetItem(ui->list);
|
QListWidgetItem* listItem = new QListWidgetItem(ui->list);
|
||||||
DownloadItem* downItem = new DownloadItem(listItem, downloadItem, m_downloadPath, fileName, this);
|
DownloadItem* downItem = new DownloadItem(listItem, downloadItem, m_downloadPath, fileName, this);
|
||||||
|
connect(downItem, SIGNAL(deleteItem(DownloadItem*)), this, SLOT(deleteItem(DownloadItem*)));
|
||||||
|
connect(downItem, SIGNAL(downloadFinished(bool)), this, SLOT(downloadFinished(bool)));
|
||||||
ui->list->setItemWidget(listItem, downItem);
|
ui->list->setItemWidget(listItem, downItem);
|
||||||
listItem->setSizeHint(downItem->sizeHint());
|
listItem->setSizeHint(downItem->sizeHint());
|
||||||
downItem->show();
|
downItem->show();
|
||||||
|
Loading…
Reference in New Issue
Block a user