summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrédéric Brière <fbriere@fbriere.net>2016-10-01 16:21:25 -0400
committerFrédéric Brière <fbriere@fbriere.net>2016-10-03 20:36:45 -0400
commit216300dc1ae252ed517a5d9c2879cf94321a5b4b (patch)
treed8efc14ebb74b1127db488e9119100a208b7cf9a /src
parenta06681c29a66b7213eef0261d689230ee7515e5e (diff)
downloadtwinkle-216300dc1ae252ed517a5d9c2879cf94321a5b4b.tar
twinkle-216300dc1ae252ed517a5d9c2879cf94321a5b4b.tar.gz
twinkle-216300dc1ae252ed517a5d9c2879cf94321a5b4b.tar.lz
twinkle-216300dc1ae252ed517a5d9c2879cf94321a5b4b.tar.xz
twinkle-216300dc1ae252ed517a5d9c2879cf94321a5b4b.zip
Actually iterate over rows in UserProfileForm::get_number_conversions()
Diffstat (limited to 'src')
-rw-r--r--src/gui/userprofileform.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/userprofileform.cpp b/src/gui/userprofileform.cpp
index 788d87b..c172415 100644
--- a/src/gui/userprofileform.cpp
+++ b/src/gui/userprofileform.cpp
@@ -707,9 +707,9 @@ list<t_number_conversion> UserProfileForm::get_number_conversions()
t_number_conversion c;
try {
- item = conversionListView->item(0, 0);
+ item = conversionListView->item(i, 0);
c.re.assign(item->text().toStdString());
- item = conversionListView->item(0, 1);
+ item = conversionListView->item(i, 1);
c.fmt = item->text().toStdString();
conversions.push_back(c);
} catch (std::regex_error) {