Skip to content

Commit

Permalink
Fixup cf03966
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Aug 25, 2017
1 parent 97374bb commit 23fad6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/widgets/listbox.cpp
Expand Up @@ -620,9 +620,9 @@ void listbox::set_active_sorting_option(const order_pair& sort_by, const bool se
// Set the sorting toggle widgets' value (in this case, its state) to the given sorting
// order. This is necessary since the widget's value is used to determine the order in
// @ref order_by_column in lieu of a direction being passed directly.
w->set_value(static_cast<int>(sort_by.second));
w.set_value(static_cast<int>(sort_by.second));

order_by_column(sort_by.first, dynamic_cast<widget&>(*w));
order_by_column(sort_by.first, dynamic_cast<widget&>(w));

if(select_first && generator_->get_item_count() > 0) {
select_row_at(0);
Expand Down

0 comments on commit 23fad6d

Please sign in to comment.