src/partDownloader.cc

changeset 882
2f3cc8e045d5
parent 867
557cb07dbe57
child 888
7ad8fb667084
--- a/src/partDownloader.cc	Sat Sep 06 23:21:28 2014 +0300
+++ b/src/partDownloader.cc	Sun Sep 07 01:13:20 2014 +0300
@@ -44,7 +44,7 @@
 
 	if (path.isEmpty() or not QDir (path).exists())
 	{
-		CriticalError (PartDownloader::tr ("You need to specify a valid path for "
+		Critical (PartDownloader::tr ("You need to specify a valid path for "
 			"downloaded files in the configuration to download paths."));
 
 		(new ConfigDialog (ConfigDialog::DownloadTab, null))->exec();
@@ -373,7 +373,7 @@
 		print ("Creating %1...\n", dirpath);
 
 		if (not dir.mkpath (dirpath))
-			CriticalError (format (tr ("Couldn't create the directory %1!"), dirpath));
+			Critical (format (tr ("Couldn't create the directory %1!"), dirpath));
 	}
 
 	setNetworkReply (networkManager()->get (QNetworkRequest (QUrl (url))));
@@ -448,7 +448,7 @@
 	if (networkReply()->error() != QNetworkReply::NoError)
 	{
 		if (isPrimary() and not prompt()->isAborted())
-			CriticalError (networkReply()->errorString());
+			Critical (networkReply()->errorString());
 
 		print ("Unable to download %1: %2\n", m_destinaton, networkReply()->errorString());
         setState (State::Failed);
@@ -543,7 +543,7 @@
 
 		if (not filePointer()->open (QIODevice::WriteOnly))
 		{
-			CriticalError (format (tr ("Couldn't open %1 for writing: %2"), filePath(), strerror (errno)));
+			Critical (format (tr ("Couldn't open %1 for writing: %2"), filePath(), strerror (errno)));
             setState (State::Failed);
 			networkReply()->abort();
 			updateToTable();

mercurial