← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2964: Exclude temporary downloads from queue dupe check

 

------------------------------------------------------------
revno: 2964
fixes bug: https://launchpad.net/bugs/1016907
committer: eMTee <emtee11@xxxxxxxxx>
branch nick: dcplusplus
timestamp: Sat 2012-06-23 22:38:05 +0200
message:
  Exclude temporary downloads from queue dupe check
modified:
  changelog.txt
  dcpp/QueueManager.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'changelog.txt'
--- changelog.txt	2012-06-23 12:31:10 +0000
+++ changelog.txt	2012-06-23 20:38:05 +0000
@@ -20,6 +20,7 @@
 * Fix unsuccessful HTTP redirections (emtee)
 * [L#1016205] Avoid deadlocks when changing user matchings (poy)
 * [L#249159] Improve performance when selecting lots of lines in lists (poy)
+* [L#1016907] Exclude temporary downloads from queue dupe check (emtee)
 
 -- 0.799 2012-05-05 --
 * Add icons (iceman50)

=== modified file 'dcpp/QueueManager.cpp'
--- dcpp/QueueManager.cpp	2012-06-21 18:52:47 +0000
+++ dcpp/QueueManager.cpp	2012-06-23 20:38:05 +0000
@@ -564,7 +564,7 @@
 		Lock l(cs);
 
 		// This will be pretty slow on large queues...
-		if(SETTING(DONT_DL_ALREADY_QUEUED) && !(aFlags & QueueItem::FLAG_USER_LIST)) {
+		if(SETTING(DONT_DL_ALREADY_QUEUED) && !(aFlags & QueueItem::FLAG_USER_LIST || aFlags & QueueItem::FLAG_CLIENT_VIEW)) {
 			auto ql = fileQueue.find(root);
 			if (!ql.empty()) {
 				// Found one or more existing queue items, lets see if we can add the source to them