← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2111: fix double user-commands

 

------------------------------------------------------------
revno: 2111
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Tue 2010-03-23 17:16:37 +0100
message:
  fix double user-commands
modified:
  dcpp/UserCommand.h


--
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 'dcpp/UserCommand.h'
--- dcpp/UserCommand.h	2010-03-20 16:51:58 +0000
+++ dcpp/UserCommand.h	2010-03-23 16:16:37 +0000
@@ -67,6 +67,7 @@
 		cid = rhs.cid; type = rhs.type; ctx = rhs.ctx;
 		name = rhs.name; command = rhs.command; to = rhs.to; hub = rhs.hub;
 		*((Flags*)this) = rhs;
+		displayName.clear();
 		setDisplayName();
 		return *this;
 	}