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

List:       kde-commits
Subject:    [telepathy-contact-list] /: Remove accelerators from presence
From:       Paolo Capriotti <p.capriotti () gmail ! com>
Date:       2011-07-17 20:32:09
Message-ID: 20110717203209.301ECA60A6 () git ! kde ! org
[Download RAW message or body]

Git commit d557db3e4585058aa0059e4fc887562a10a9afa7 by Paolo Capriotti.
Committed on 17/07/2011 at 21:35.
Pushed by capriotti into branch 'master'.

Remove accelerators from presence action text before updating tooltip.

BUG: 276405
REVIEW: 101982

M  +1    -1    account-button.cpp

http://commits.kde.org/telepathy-contact-list/d557db3e4585058aa0059e4fc887562a10a9afa7

diff --git a/account-button.cpp b/account-button.cpp
index 2ccda54..7763858 100644
--- a/account-button.cpp
+++ b/account-button.cpp
@@ -234,7 +234,7 @@ QString AccountButton::presenceDisplayString(const Tp::Presence &presence)
 {
     foreach (QAction *a, actions()) {
         if (presence.status() == qVariantValue<Tp::Presence>(a->data()).status()) {
-            return a->text();
+            return KGlobal::locale()->removeAcceleratorMarker(a->text());
         }
     }
 

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

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