← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2143: fix /clear

 

------------------------------------------------------------
revno: 2143
committer: poy <poy@xxxxxxxxxx>
branch nick: repo
timestamp: Mon 2010-05-10 19:13:53 +0200
message:
  fix /clear
modified:
  changelog.txt
  win32/AspectChat.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 'changelog.txt'
--- changelog.txt	2010-05-10 15:48:54 +0000
+++ changelog.txt	2010-05-10 17:13:53 +0000
@@ -1,7 +1,7 @@
 * Stability improvement related to menus (poy)
 * [L#539992] Shell menus for directories when browsing own file list (poy)
 * Parse separators in titles of user command param boxes (poy)
-* Fix painting issues with /clear <n> (poy)
+* Fix painting issues with /clear (poy)
 * Smooth text-box menus (poy)
 * Add user commands to the chat menu (poy)
 * OpenSSL 0.9.8n - defends against a remote crash (poy)

=== modified file 'win32/AspectChat.h'
--- win32/AspectChat.h	2010-05-04 17:44:05 +0000
+++ win32/AspectChat.h	2010-05-10 17:13:53 +0000
@@ -121,8 +121,10 @@
 					}
 					chat->redraw();
 				}
-			} else
-				chat->setText(_T(""));
+			} else {
+				chat->setSelection();
+				chat->replaceSelection(_T(""));
+			}
 		} else if(Util::stricmp(cmd.c_str(), _T("ts")) == 0) {
 			timeStamps = !timeStamps;
 			if(timeStamps) {