Skip to content

Commit

Permalink
Fixup 7c90666
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent 7c90666 commit 3c617e9
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/gui/widgets/listbox.cpp
Expand Up @@ -636,16 +636,12 @@ void listbox::set_active_sorting_option(const order_pair& sort_by, const bool se

const listbox::order_pair listbox::get_active_sorting_option()
{
unsigned int column = 0;

for(const auto& order : orders_) {
selectable_item* w = order.first;
for(unsigned int column = 0; column < orders_.size(); ++column) {
selectable_item* w = orders_[column].first;

if(w && w->get_value() != SORT_NONE) {
return std::make_pair(column, static_cast<SORT_ORDER>(w->get_value()));
}

++column;
}

return std::make_pair(-1, SORT_NONE);
Expand Down

0 comments on commit 3c617e9

Please sign in to comment.