-rw-r--r-- | noncore/net/opietooth/manager/btserviceitem.cpp | 3 |
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; | |||
5 | 5 | ||
6 | BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv ) | 6 | BTServiceItem::BTServiceItem( QListViewItem* item, const Services& serv ) |
7 | : BTListItem( item ) { | 7 | : BTListItem( item ) { |
8 | int port = serv.protocolDescriptorList().last().port(); | ||
8 | m_service = serv; | 9 | m_service = serv; |
9 | setText(0, QObject::tr(serv.serviceName() ) ); | 10 | setText(0, QObject::tr(serv.serviceName() ) ); |
11 | if (port > 0) | ||
12 | setText(1, QString::number(port) ); | ||
10 | } | 13 | } |
11 | BTServiceItem::~BTServiceItem() { | 14 | BTServiceItem::~BTServiceItem() { |
12 | 15 | ||