summaryrefslogtreecommitdiff
path: root/noncore
Side-by-side diff
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/opietooth/manager/btserviceitem.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/noncore/net/opietooth/manager/btserviceitem.cpp b/noncore/net/opietooth/manager/btserviceitem.cpp
index fb5f21e..8e6459d 100644
--- a/noncore/net/opietooth/manager/btserviceitem.cpp
+++ b/noncore/net/opietooth/manager/btserviceitem.cpp
@@ -5,8 +5,11 @@ using namespace OpieTooth;
BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv )
: BTListItem( item ) {
+ int port = serv.protocolDescriptorList().last().port();
m_service = serv;
setText(0, QObject::tr(serv.serviceName() ) );
+ if (port > 0)
+ setText(1, QString::number(port) );
}
BTServiceItem::~BTServiceItem() {