summaryrefslogtreecommitdiffstats
path: root/src/gui/selectuserform.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/selectuserform.cpp')
-rw-r--r--src/gui/selectuserform.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/selectuserform.cpp b/src/gui/selectuserform.cpp
index 0488dc9..d1386b9 100644
--- a/src/gui/selectuserform.cpp
+++ b/src/gui/selectuserform.cpp
@@ -95,7 +95,7 @@ void SelectUserForm::show(t_select_purpose purpose)
// Fill list view
list<t_user *> user_list = phone->ref_users();
- for (list<t_user *>::reverse_iterator i = user_list.rbegin(); i != user_list.rend(); i++) {
+ for (list<t_user *>::iterator i = user_list.begin(); i != user_list.end(); i++) {
QListWidgetItem* item = new QListWidgetItem(QString::fromStdString((*i)->get_profile_name()), userListView);
item->setFlags(item->flags() | Qt::ItemIsUserCheckable);
@@ -132,7 +132,6 @@ void SelectUserForm::validate()
not_selected_list.push_back(phone->
ref_user_profile(item->text().toStdString()));
}
- i++;
}
emit (selection(selected_list));