[SCM] ktp-common-internals packaging branch, master, updated. debian/15.12.1-2-1839-gf0635e9

Maximiliano Curia maxy at moszumanska.debian.org
Mon May 9 09:05:15 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-common-internals.git;a=commitdiff;h=fc3495f

The following commit has been merged in the master branch:
commit fc3495f42e3da5507a53f7c1bc71ad88f97e656e
Author: Lasath Fernando <kde at lasath.org>
Date:   Sun Jun 17 13:16:47 2012 +1000

    Hack MessageProcessor to run EscapeFilter first
    
    It currently iterates through the list of loaded plugins, finds
    EscapeFilter by name, and sticks it to the front of the list.
---
 KTp/message-processor.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/KTp/message-processor.cpp b/KTp/message-processor.cpp
index 6d5b078..97171ac 100644
--- a/KTp/message-processor.cpp
+++ b/KTp/message-processor.cpp
@@ -49,7 +49,16 @@ MessageProcessor* MessageProcessor::instance()
 MessageProcessor::MessageProcessor()
 {
     loadAllPlugins();
-    m_filters << new UrlFilter(this);
+    m_filters.prepend(new UrlFilter(this));
+
+    //FIXME: Massive hack to not escape URLs.
+    Q_FOREACH (AbstractMessageFilter *filter, m_filters) {
+        if (QLatin1String(filter->metaObject()->className()) == QLatin1String("EscapeFilter")) {
+            Q_ASSERT(m_filters.removeOne(filter));
+            m_filters.prepend(filter);
+            break;
+        }
+    }
 }
 
 

-- 
ktp-common-internals packaging



More information about the pkg-kde-commits mailing list