[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:22:00 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=ff7a86c

The following commit has been merged in the master branch:
commit ff7a86cfdb67e362c116ab6da25772d3f73b88c7
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.
---
 lib/message-processor.cpp | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/message-processor.cpp b/lib/message-processor.cpp
index 6d5b078..97171ac 100644
--- a/lib/message-processor.cpp
+++ b/lib/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-text-ui packaging



More information about the pkg-kde-commits mailing list