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


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

The following commit has been merged in the master branch:
commit 26e2ce97187b45439626af3e534c109df95c9531
Author: Martin Klapetek <martin.klapetek at gmail.com>
Date:   Tue Apr 9 20:58:55 2013 +0200

    Don't truncate the notification text
    
    The QML notification plasmoid now takes care of proper elipsis, so we
    don't need this anymore.
    
    Reviewed-by: David Edmundson
    FIXED-IN: 0.6.1
    BUG: 318103
---
 lib/notify-filter.cpp | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/lib/notify-filter.cpp b/lib/notify-filter.cpp
index bdca077..a5c8ba0 100644
--- a/lib/notify-filter.cpp
+++ b/lib/notify-filter.cpp
@@ -84,15 +84,7 @@ void NotifyFilter::filterMessage(KTp::Message &message, const KTp::MessageContex
         }
     }
 
-    //truncate message if necessary
-    QString notifyText = message.mainMessagePart().simplified();
-    if (notifyText.length() > 170) {
-        //search for the closest space in text
-        notifyText.truncate(notifyText.indexOf(QLatin1Char(' '), 150));
-        notifyText.append(QLatin1String("..."));
-    }
-    notification->setText(notifyText);
-
+    notification->setText(message.mainMessagePart().simplified());
 
     notification->setActions(QStringList(i18n("View")));
     connect(notification, SIGNAL(activated(uint)), m_widget, SIGNAL(notificationClicked()));

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list