# HG changeset patch # User unc0rr # Date 1353250378 -14400 # Node ID 07661fb20586d31ca9024ca8f9160f17d44156e4 # Parent bcebfc477459f3b64c9b0d596f598eebbd0b5cf0 Download .zip too, and store them to .hwp diff -r bcebfc477459 -r 07661fb20586 QTfrontend/ui/page/pagedata.cpp --- a/QTfrontend/ui/page/pagedata.cpp Sat Nov 17 20:30:32 2012 -0500 +++ b/QTfrontend/ui/page/pagedata.cpp Sun Nov 18 18:52:58 2012 +0400 @@ -72,7 +72,7 @@ else finalUrl = url; - if(url.path().endsWith(".hwp")) + if(url.path().endsWith(".hwp") || url.path().endsWith(".zip")) { qWarning() << "Download Request" << url.toString(); QString fileName = QFileInfo(url.toString()).fileName(); @@ -138,6 +138,8 @@ extractDir.cd("Data"); QString fileName = extractDir.filePath(QFileInfo(reply->url().path()).fileName()); + if(fileName.endsWith(".zip")) + fileName = fileName.left(fileName.length() - 4) + ".hwp"; QFile out(fileName); if(!out.open(QFile::WriteOnly))