diff options
-rw-r--r-- | TODO | 1 | ||||
-rw-r--r-- | src/gui/gui.cpp | 7 | ||||
-rw-r--r-- | src/gui/selectnicform.ui | 2 |
3 files changed, 4 insertions, 6 deletions
@@ -7,7 +7,6 @@ Remaining .ui/cpp/h files: * mphoneform - * selectnicform * selectprofileform * selectuserform * syssettingsform diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 4f90132..1b0fbbb 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -889,15 +889,14 @@ string t_gui::select_network_intf(void) { for (list<t_interface>::iterator i = l->begin(); i != l->end(); i++) { item = i->name.c_str(); item.append(':').append(i->get_ip_addr().c_str()); - sf->nicListBox->insertItem( - QPixmap(":/icons/images/kcmpci16.png"), - item); + + new QListWidgetItem(QPixmap(":/icons/images/kcmpci16.png"), item, sf->nicListBox); } sf->nicListBox->setCurrentItem(0); sf->exec(); - int selection = sf->nicListBox->currentItem(); + int selection = sf->nicListBox->currentRow(); int num = 0; for (list<t_interface>::iterator i = l->begin(); i != l->end(); i++) { if (num == selection) { diff --git a/src/gui/selectnicform.ui b/src/gui/selectnicform.ui index 4da5e07..77d78e1 100644 --- a/src/gui/selectnicform.ui +++ b/src/gui/selectnicform.ui @@ -62,7 +62,7 @@ </widget> </item> <item> - <widget class="Q3ListBox" name="nicListBox"> + <widget class="QListWidget" name="nicListBox"> <property name="whatsThis" stdset="0"> <string>You have multiple IP addresses. Here you must select which IP address should be used. This IP address will be used inside the SIP messages.</string> </property> |