summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLuboš Doležel <lubos@dolezel.info>2016-10-05 20:16:28 +0200
committerGitHub <noreply@github.com>2016-10-05 20:16:28 +0200
commit38ff020afe607a08b147bd281a30b3b16527d802 (patch)
tree514d470897f1f62dbf0ca3c0ac24895cabc167d5 /src/gui
parentafd7d266917444e988ecc71486f2e6530db9e682 (diff)
parentbe39682cd2cbb7840270c29e89a6d8f9badc69ad (diff)
downloadtwinkle-38ff020afe607a08b147bd281a30b3b16527d802.tar
twinkle-38ff020afe607a08b147bd281a30b3b16527d802.tar.gz
twinkle-38ff020afe607a08b147bd281a30b3b16527d802.tar.lz
twinkle-38ff020afe607a08b147bd281a30b3b16527d802.tar.xz
twinkle-38ff020afe607a08b147bd281a30b3b16527d802.zip
Merge pull request #79 from fbriere/bug/selectuserform
Fix two issues with SelectUserForm
Diffstat (limited to 'src/gui')
-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));