summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Maudsley <richard.maudsley@isode.com>2014-02-24 09:22:24 (GMT)
committerRichard Maudsley <richard.maudsley@isode.com>2014-02-24 09:22:24 (GMT)
commitda5e31ec60d089c3ffbafc3246608c95ba44df06 (patch)
tree0b1db584d7be8d8b32d754d6f05e3fcf4ebce27c /Swift/QtUI/Roster
parentc54f38cabcf6db20b933a447135e73866156b871 (diff)
downloadswift-da5e31ec60d089c3ffbafc3246608c95ba44df06.zip
swift-da5e31ec60d089c3ffbafc3246608c95ba44df06.tar.bz2
Label fax numbers as fax and omit resources from JIDs in roster tooltips
Change-Id: I3101077446df6d673be594b0479dac169fb02f2b
Diffstat (limited to 'Swift/QtUI/Roster')
-rw-r--r--Swift/QtUI/Roster/RosterTooltip.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/Roster/RosterTooltip.cpp b/Swift/QtUI/Roster/RosterTooltip.cpp
index 045a955..86f175d 100644
--- a/Swift/QtUI/Roster/RosterTooltip.cpp
+++ b/Swift/QtUI/Roster/RosterTooltip.cpp
@@ -114,7 +114,8 @@ QString RosterTooltip::buildVCardSummary(VCard::ref vcard) {
// star | name | content
QString currentBlock;
foreach (const VCard::Telephone& tel, vcard->getTelephones()) {
- QString field = buildVCardField(tel.isPreferred, QObject::tr("Telephone"), htmlEscape(P2QSTRING(tel.number)));
+ QString type = tel.isFax ? QObject::tr("Fax") : QObject::tr("Telephone");
+ QString field = buildVCardField(tel.isPreferred, type, htmlEscape(P2QSTRING(tel.number)));
if (tel.isPreferred) {
currentBlock = field;
break;