[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:16:02 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=e140978
The following commit has been merged in the master branch:
commit e14097825786f1927c1cdd2f0061da338ed65bd0
Author: Daniele Elmo Domenichelli <daniele.domenichelli at gmail.com>
Date: Thu Aug 5 14:33:27 2010 +0000
Send message only if not empty
svn path=/trunk/playground/network/telepathy-chat-handler/; revision=1159514
---
lib/chatwindow.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/chatwindow.cpp b/lib/chatwindow.cpp
index 25786f7..6941b5e 100644
--- a/lib/chatwindow.cpp
+++ b/lib/chatwindow.cpp
@@ -94,8 +94,10 @@ void ChatWindow::handleMessageSent(const Tp::Message &message, Tp::MessageSendin
void ChatWindow::sendMessage()
{
- m_chatConnection->channel()->send(ui->sendMessageBox->toPlainText());
- ui->sendMessageBox->clear();
+ if(!ui->sendMessageBox->toPlainText().isEmpty()) {
+ m_chatConnection->channel()->send(ui->sendMessageBox->toPlainText());
+ ui->sendMessageBox->clear();
+ }
}
void ChatWindow::updateChatStatus(Tp::ContactPtr contact, ChannelChatState state)
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list