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
remotes/origin/falkon
nowrep 15 years ago
parent 2c0cf65018
commit 54c05b91f8
  1. 8
      src/downloads/downloaditem.cpp

@ -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()

Loading…
Cancel
Save