diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-03-25 21:10:21 +0000 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-03-25 21:10:21 +0000 |
commit | dc2eb66e0a23ffccce421aeeee149be9ce6c5a1d (patch) | |
tree | be3835ae4445b2eae0b497417d996dd8a4d8cb17 /src/cardwidget.cc | |
parent | 514a8c12277560a0fee0915e4e48d828c15622e9 (diff) |
Order the card profiles by their priority
Diffstat (limited to 'src/cardwidget.cc')
-rw-r--r-- | src/cardwidget.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cardwidget.cc b/src/cardwidget.cc index ea4b208..c8efd31 100644 --- a/src/cardwidget.cc +++ b/src/cardwidget.cc @@ -55,11 +55,11 @@ void CardWidget::prepareMenu() { treeModel->clear(); /* Fill the ComboBox's Tree Model */ - for (std::map<Glib::ustring, Glib::ustring>::iterator i = profiles.begin(); i != profiles.end(); ++i) { + for (uint32_t i = 0; i < profiles.size(); ++i) { Gtk::TreeModel::Row row = *(treeModel->append()); - row[profileModel.name] = i->first; - row[profileModel.desc] = i->second; - if (i->first == activeProfile) + row[profileModel.name] = profiles[i].first; + row[profileModel.desc] = profiles[i].second; + if (profiles[i].first == activeProfile) active_idx = idx; idx++; } |