src/download.cpp

changeset 513
29eb671b34f6
parent 504
6a1fa662bfc1
child 514
d78fea0f664c
--- a/src/download.cpp	Fri Oct 18 18:16:54 2013 +0300
+++ b/src/download.cpp	Fri Oct 18 21:52:09 2013 +0300
@@ -41,6 +41,7 @@
 // -----------------------------------------------------------------------------
 void PartDownloader::k_download()
 {	str path = getDownloadPath();
+	assert (false);
 
 	if (path == "" || QDir (path).exists() == false)
 	{	critical (PartDownloader::tr ("You need to specify a valid path for "
@@ -232,7 +233,7 @@
 		return;
 
 	modifyDest (dest);
-	print ("DOWNLOAD: %1 -> %2\n", url, PartDownloader::getDownloadPath() + DIRSLASH + dest);
+	log ("DOWNLOAD: %1 -> %2\n", url, PartDownloader::getDownloadPath() + DIRSLASH + dest);
 	PartDownloadRequest* req = new PartDownloadRequest (url, dest, primary, this);
 
 	m_filesToDownload << dest;
@@ -320,7 +321,7 @@
 	QDir dir (dirpath);
 
 	if (!dir.exists())
-	{	print ("Creating %1...\n", dirpath);
+	{	log ("Creating %1...\n", dirpath);
 
 		if (!dir.mkpath (dirpath))
 			critical (fmt (tr ("Couldn't create the directory %1!"), dirpath));

mercurial