made downloaded files be stored into recent files

Sat, 17 Aug 2013 02:06:55 +0300

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Sat, 17 Aug 2013 02:06:55 +0300
changeset 449
f462f0bd3c51
parent 448
9b854708a5c8
child 450
0bfe9a050083

made downloaded files be stored into recent files

src/download.cpp file | annotate | diff | comparison | revisions
--- a/src/download.cpp	Sat Aug 17 01:17:20 2013 +0300
+++ b/src/download.cpp	Sat Aug 17 02:06:55 2013 +0300
@@ -423,8 +423,10 @@
 		m_prompt->downloadFile (dest, str (PartDownloader::k_UnofficialURL) + dest, false);
 	}
 	
-	if (m_primary)
+	if (m_primary) {
+		addRecentFile (m_fpath);
 		m_prompt->setPrimaryFile (f);
+	}
 	
 	m_prompt->checkIfFinished();
 }

mercurial