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

List:       kde-commits
Subject:    =?utf-8?q?=5Btelepathy-chat-handler=5D_lib=3A_FIX=3A_Strip_down_?=
From:       Francesco Nwokeka <francesco.nwokeka () gmail ! com>
Date:       2011-04-04 22:55:34
Message-ID: 20110404225534.AFE47A609B () git ! kde ! org
[Download RAW message or body]

Git commit 8586347e2e6f8cdd65fc0a8b2b004af65e007458 by Francesco Nwokeka.
Committed on 05/04/2011 at 00:58.
Pushed by nwokeka into branch 'master'.

FIX: Strip down HTML when copying from chat view

BUG: 269996
REVIEW: David Edmundson

set the "setAcceptRichText" to false so we don't accept anything unwanted apart from normal text

M  +3    -0    lib/chat-text-edit.cpp     

http://commits.kde.org/telepathy-chat-handler/8586347e2e6f8cdd65fc0a8b2b004af65e007458

diff --git a/lib/chat-text-edit.cpp b/lib/chat-text-edit.cpp
index 525f877..4c3a4c0 100644
--- a/lib/chat-text-edit.cpp
+++ b/lib/chat-text-edit.cpp
@@ -34,6 +34,9 @@ ChatTextEdit::ChatTextEdit(QWidget *parent) :
     enableFindReplace(false);
     setMinimumHeight(0);
 
+    // set to false so it doesn't paste anything unwanted apart from normal text
+    setAcceptRichText(false);
+
     connect(this, SIGNAL(textChanged()), SLOT(recalculateSize()));
 }
 

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

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