[SCM] ktp-contact-list packaging branch, master, updated. debian/15.12.1-2-1070-g6c56f91
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:06:34 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-contact-list.git;a=commitdiff;h=14e96ec
The following commit has been merged in the master branch:
commit 14e96ecb979b9ac75f91c3cebd82b4810aea5504
Author: Dario Freddi <drf at kde.org>
Date: Fri Jun 3 00:34:14 2011 +0200
Fix Add contact dialog, which had broken KComboBox selecting.
Reviewed-by: Martin Klapetek
---
add-contact-dialog.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/add-contact-dialog.cpp b/add-contact-dialog.cpp
index a469c27..83c2362 100644
--- a/add-contact-dialog.cpp
+++ b/add-contact-dialog.cpp
@@ -77,7 +77,10 @@ AddContactDialog::AddContactDialog(AccountsModel *accountModel, QWidget *parent)
SubscribableAccountsModel *filteredModel = new SubscribableAccountsModel(this);
filteredModel->setSourceModel(accountModel);
- ui->accountCombo->setModel(filteredModel);
+ for (int i = 0; i < filteredModel->rowCount(); ++i) {
+ ui->accountCombo->addItem(filteredModel->data(filteredModel->index(i, 0)).toString(),
+ filteredModel->data(filteredModel->index(i, 0), AccountsModel::ItemRole));
+ }
}
AddContactDialog::~AddContactDialog()
--
ktp-contact-list packaging
More information about the pkg-kde-commits
mailing list