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


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

The following commit has been merged in the master branch:
commit 490252da20136840bb7f2f9a31aac87ac31e808f
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Mon Aug 13 15:57:39 2012 +0100

    turn urls into lower case when comparing image file extensions
    
    This makes http://something/foo.JPEG preview correctly where instead of being ignored
    
    Reviewed-by: Dominik Schmidt
---
 filters/images/images-filter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/filters/images/images-filter.cpp b/filters/images/images-filter.cpp
index 54bc4e6..e2b10b1 100644
--- a/filters/images/images-filter.cpp
+++ b/filters/images/images-filter.cpp
@@ -55,7 +55,7 @@ void ImagesFilter::filterMessage (Message& message)
     kDebug() << message.property("Urls").toList().size();
     Q_FOREACH (const QVariant var, message.property("Urls").toList()) {
         KUrl url = qvariant_cast<KUrl>(var);
-        QString fileName = url.fileName();
+        QString fileName = url.fileName().toLower();
 
         if (!fileName.isNull() && fileName.contains(d->imageRegex)) {
             QString href = QString::fromAscii(url.toEncoded());

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list