Version: 0.10 (CVS from 26/2/2005) (using KDE Devel) Installed from: Compiled sources Compiler: gcc version 3.4.3 20050110 (Gentoo Linux 3.4.3.20050110, ssp-3.4.3.20050110-0, pie-8.7.7) -march=pentium4 -mtune=pentium4 -O2 -ftracer -pipe -fomit-frame-pointer -mfpmath=sse -ffast-math -fsched2-use-superblocks -funit-at-a-time -fvisibility-inlines-hidden OS: Linux Just hold the enter key and watch empty messages get sent. (my enter key gets stuck sometimes so it's VERY annoying) I haven't tested with last stable kopete but my keyboard started acting up around alpha1 (cvs). I really hope it'd get fixed in cvs sometime soon. Details : all compiled from cvs today (26/2/2005) Qt: 3.3.3 KDE: 3.4.0 Kopete: 0.10 Oh one final note, I only use AIM so I'm not sure if this bug applies to other network plugins. peace
CVS commit by dmacvicar: Fix bug: Holding enter sends empty messages BUGS: 100334 M +4 -0 chattexteditpart.cpp 1.3 --- kdenetwork/kopete/kopete/chatwindow/chattexteditpart.cpp #1.2:1.3 @@ -229,4 +229,8 @@ void ChatTextEditPart::sendMessage() { QString txt = text( Qt::PlainText ); + // avoid sending emtpy messages or enter keys (see bug 100334) + if ( txt.isEmpty() || txt == "\n" ) + return; + if ( m_lastMatch.isNull() && ( txt.find( QRegExp( QString::fromLatin1("^\\w+:\\s") ) ) > -1 ) ) { //no last match and it finds something of the form of "word:" at the start of a line
*** Bug 95707 has been marked as a duplicate of this bug. ***
CVS commit by dmacvicar: Backport bugfix: Holding enter sends empty messages CCBUGS: 100334 M +4 -0 chattexteditpart.cpp 1.2.4.1 --- kdenetwork/kopete/kopete/chatwindow/chattexteditpart.cpp #1.2:1.2.4.1 @@ -229,4 +229,8 @@ void ChatTextEditPart::sendMessage() { QString txt = text( Qt::PlainText ); + // avoid sending emtpy messages or enter keys (see bug 100334) + if ( txt.isEmpty() || txt == "\n" ) + return; + if ( m_lastMatch.isNull() && ( txt.find( QRegExp( QString::fromLatin1("^\\w+:\\s") ) ) > -1 ) ) { //no last match and it finds something of the form of "word:" at the start of a line
You need to log in before you can comment on or make changes to this bug.