1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 09:42:10 +02:00

In download manager, when the metaDataChanged signal is emitted, we

won't show message box to inform user, we will just write warning to
console
This commit is contained in:
nowrep 2011-03-31 19:14:13 +02:00
parent 2c0cf65018
commit 54c05b91f8

View File

@ -80,8 +80,14 @@ DownloadItem::DownloadItem(QListWidgetItem* item, QNetworkReply* reply, QString
void DownloadItem::metaDataChanged()
{
// http://www.olympus.cz/consumer/images/XD-Picture_card_1GB_Hand_CROP(1).jpg
// << download this picture emits metaDataChanged signal, but image is downloaded correctly
QVariant locationHeader = m_reply->header(QNetworkRequest::LocationHeader);
QMessageBox::information(m_item->listWidget()->parentWidget(), "Meta Data Changed", QString("Meta data changed feature unimplemented yet, sorry.\n URL: '%̈́'").arg(locationHeader.toUrl().toString()));
if (!locationHeader.toUrl().isEmpty())
qWarning() << "DownloadManager: metaDataChanged << URL: " << locationHeader.toUrl();
// QMessageBox::information(m_item->listWidget()->parentWidget(), "Meta Data Changed", QString("Meta data changed feature unimplemented yet, sorry.\n URL: '%̈́'").arg(locationHeader.toUrl().toString()));
}
void DownloadItem::finished()