mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Fix downloadmanager displaying wrong filename
This commit is contained in:
parent
623a28f1fe
commit
deeafc3133
@ -256,7 +256,7 @@ 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, QFileInfo(downloadPath).absolutePath(), fileName, openFile, this);
|
DownloadItem* downItem = new DownloadItem(listItem, downloadItem, QFileInfo(downloadPath).absolutePath(), QFileInfo(downloadPath).fileName(), openFile, this);
|
||||||
connect(downItem, SIGNAL(deleteItem(DownloadItem*)), this, SLOT(deleteItem(DownloadItem*)));
|
connect(downItem, SIGNAL(deleteItem(DownloadItem*)), this, SLOT(deleteItem(DownloadItem*)));
|
||||||
connect(downItem, SIGNAL(downloadFinished(bool)), this, SLOT(downloadFinished(bool)));
|
connect(downItem, SIGNAL(downloadFinished(bool)), this, SLOT(downloadFinished(bool)));
|
||||||
ui->list->setItemWidget(listItem, downItem);
|
ui->list->setItemWidget(listItem, downItem);
|
||||||
|
Loading…
Reference in New Issue
Block a user