Skip to content

Commit

Permalink
GUI2/Campaign Selection: fixup initializer list
Browse files Browse the repository at this point in the history
Some items were missing and out of order. Also removed the inline initialization for consistency.
  • Loading branch information
Vultraz committed Aug 15, 2017
1 parent c0c29f8 commit d06c860
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/gui/dialogs/campaign_selection.hpp
Expand Up @@ -33,7 +33,9 @@ class campaign_selection : public modal_dialog
, choice_(-1)
, deterministic_(false)
, mod_states_()
, page_ids_()
, current_sorting_(RANK)
, currently_sorted_asc_(true)
{
set_restore(true);
}
Expand Down Expand Up @@ -63,9 +65,6 @@ class campaign_selection : public modal_dialog
/** Inherited from modal_dialog. */
virtual void post_show(window& window) override;

enum CAMPAIGN_ORDER {RANK, DATE, NAME} current_sorting_;
bool currently_sorted_asc_ = true;

void sort_campaigns(window& window, CAMPAIGN_ORDER order, bool ascending);

void add_campaign_to_tree(window& window, const config& campaign);
Expand All @@ -85,6 +84,10 @@ class campaign_selection : public modal_dialog
boost::dynamic_bitset<> mod_states_;

std::vector<std::string> page_ids_;

enum CAMPAIGN_ORDER {RANK, DATE, NAME} current_sorting_;

bool currently_sorted_asc_;
};

} // namespace dialogs
Expand Down

0 comments on commit d06c860

Please sign in to comment.