src/download.cpp

changeset 504
6a1fa662bfc1
parent 503
bebe09014dd6
child 513
29eb671b34f6
--- a/src/download.cpp	Wed Oct 16 16:40:42 2013 +0300
+++ b/src/download.cpp	Wed Oct 16 16:47:40 2013 +0300
@@ -188,13 +188,14 @@
 void PartDownloader::buttonClicked (QAbstractButton* btn)
 {	if (btn == getButton (Close))
 	{	reject();
-	} elif (btn == getButton (Abort))
-
+	}
+	elif (btn == getButton (Abort))
 	{	setAborted (true);
 
-	for (PartDownloadRequest * req : m_requests)
+		for (PartDownloadRequest* req : m_requests)
 			req->abort();
-	} elif (btn == getButton (Download))
+	}
+	elif (btn == getButton (Download))
 	{	str dest = ui->fname->text();
 		setPrimaryFile (null);
 		setAborted (false);

mercurial