KDE Bug Tracking System
Home
Report New Wish or Bug
Query Existing Reports
First
Last
Prev
Next
No search results available
Search page
Bug
100334
:
Holding enter sends empty messages
P
roduct
:
kopete
Co
m
ponent
:
Chat Window
Status
:
RESOLVED
Resolution
:
FIXED
Target
:
---
Version
:
unspecified
Pr
i
ority
:
NOR
Severity
:
normal
V
otes
:
0
Description
:
Opened:
2005-02-26 22:08
Last Changed:
2005-03-15 23:33:17
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
Comment
#1
Duncan Mac-Vicar Prett 2005-02-28 23:18:30
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
Comment
#2
Olivier Goffart 2005-03-01 09:54:32
***
Bug 95707
has been marked as a duplicate of this bug. ***
Comment
#3
Duncan Mac-Vicar Prett 2005-03-15 23:33:16
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
P
latform
:
Compiled Sources
O
S
:
Linux
K
eywords
:
People
Reporter
:
Ahmed F
Assigned To
:
Kopete Developers
CC
:
shodekiagari mailbolt com
Related actions
View Bug Activity
Format For Printing
XML
Clone This Bug
Note
You need to
log in
before you can comment on or make changes to this bug.
Attachments
Add an attachment
(proposed patch, testcase, etc.)
Depends on
:
B
locks
:
Show dependency tree
-
Show dependency graph
First
Last
Prev
Next
No search results available
Search page
Actions
Reports
Requests
Reports
Bugs reported today
Bugs reported in the last 3 days
Bug reports with patches
Weekly Bug statistics
The most hated bugs
The most severe bugs
The most frequently reported bugs
The most wanted features
Junior Jobs
Report ownership counts and charts
My Account
New Account
Log In