cache downloaded image

This commit is contained in:
Patrick von Reth 2014-01-14 21:50:24 +01:00
parent b55e63af7d
commit a93839fab8
1 changed files with 2 additions and 0 deletions

View File

@ -112,6 +112,8 @@ void IconData::download()
QObject::connect(reply, SIGNAL(finished()), &loop, SLOT(quit()));
loop.exec();
m_data = reply->readAll();
m_img = QImage::fromData(m_data, "PNG");
m_img.save(m_localUrl,"PNG");
}
else
{