From: Christian S. <blu...@us...> - 2004-10-29 21:12:24
|
Update of /cvsroot/planeshift/planeshift/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20037/src/client/gui Modified Files: chatwindow.cpp Log Message: - Fixed RemoveAutoCompleteName not removing name from chat window Index: chatwindow.cpp =================================================================== RCS file: /cvsroot/planeshift/planeshift/src/client/gui/chatwindow.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** chatwindow.cpp 27 Oct 2004 16:08:49 -0000 1.44 --- chatwindow.cpp 29 Oct 2004 21:12:14 -0000 1.45 *************** *** 1223,1227 **** void pawsChatWindow::RemoveAutoCompleteName(psString name) { ! autoCompleteNames.Delete(name); } --- 1223,1234 ---- void pawsChatWindow::RemoveAutoCompleteName(psString name) { ! for (size_t i = 0; i < autoCompleteNames.Length(); i++) ! { ! if (autoCompleteNames[i].CompareNoCase(name)) ! { ! autoCompleteNames.DeleteIndex(i); ! printf("Removed %s from autoComplete list.\n",name.GetData()); ! } ! } } |