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

List:       kde-commits
Subject:    extragear/pim/ksig
From:       Pino Toscano <pino () kde ! org>
Date:       2012-09-21 22:46:12
Message-ID: 20120921224612.7FAB5AC7E8 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1317220 by pino:

really use the <empty> placeholder

... as display string, when a signature is empty


 M  +4 -2      sigmodel.cpp  


--- trunk/extragear/pim/ksig/sigmodel.cpp #1317219:1317220
@@ -40,8 +40,10 @@
 	return QVariant();
 
     switch(role) {
-    case Qt::DisplayRole:
-	return m_cachedSignatures.at(index.row()).simplified();
+    case Qt::DisplayRole: {
+	const QString sig = m_cachedSignatures.at(index.row());
+	return sig.isEmpty() ? emptySignatureString() : sig.simplified();
+    }
     case SignatureRole:
 	return m_cachedSignatures.at(index.row());
     }
[prev in list] [next in list] [prev in thread] [next in thread] 

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