From dc2eb66e0a23ffccce421aeeee149be9ce6c5a1d Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Wed, 25 Mar 2009 21:10:21 +0000 Subject: Order the card profiles by their priority --- src/cardwidget.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cardwidget.cc') 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::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++; } -- cgit