[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    [kopete-devel] [Bug 100334] Holding enter sends empty messages
From:       Duncan Mac-Vicar Prett <duncan () kde ! org>
Date:       2005-03-15 22:33:18
Message-ID: 20050315223318.17979.qmail () ktown ! kde ! org
[Download RAW message or body]

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=100334         




------- Additional Comments From duncan kde org  2005-03-15 23:33 -------
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
_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic