← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 3198: fix NMDC searches

 

------------------------------------------------------------
revno: 3198
committer: poy <poy@xxxxxxxxxx>
branch nick: trunk
timestamp: Wed 2013-01-30 15:58:41 +0100
message:
  fix NMDC searches
modified:
  win32/SearchFrame.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 'win32/SearchFrame.cpp'
--- win32/SearchFrame.cpp	2013-01-28 21:32:53 +0000
+++ win32/SearchFrame.cpp	2013-01-30 14:58:41 +0000
@@ -528,7 +528,7 @@
 	if(currentSearch.empty()) {
 		return;
 	}
-	if(sr.getToken() != token) {
+	if(!sr.getToken().empty() /* NMDC searches have no token */ && sr.getToken() != token) {
 		addDropped();
 		return;
 	}