diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-11 22:36:02 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-11 22:36:02 +0200 |
commit | 47b127b648939c0c0d7f1efaceca8d675dccf513 (patch) | |
tree | 6fd9a6064dcde3e838d7460b023d06892e066021 /src/gui/setup_players.cpp | |
parent | 502b4a462b8d90af75db043e9e180ba959c37583 (diff) | |
download | mana-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.gz mana-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.bz2 mana-47b127b648939c0c0d7f1efaceca8d675dccf513.tar.xz mana-47b127b648939c0c0d7f1efaceca8d675dccf513.zip |
Made player relations persistent by default and removed option from GUI
Also changed the config key to make sure the new default applies to
everybody. It is now 'persistent-player-list' instead of
'persist-player-list'.
Diffstat (limited to 'src/gui/setup_players.cpp')
-rw-r--r-- | src/gui/setup_players.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gui/setup_players.cpp b/src/gui/setup_players.cpp index c5dffe3d..f0d88a30 100644 --- a/src/gui/setup_players.cpp +++ b/src/gui/setup_players.cpp @@ -221,8 +221,6 @@ Setup_Players::Setup_Players(): mPlayerTable(new GuiTable(mPlayerTableModel)), mPlayerTitleTable(new GuiTable(mPlayerTableTitleModel)), mPlayerScrollArea(new ScrollArea(mPlayerTable)), - mPersistIgnores(new CheckBox(_("Save player list"), - player_relations.getPersistIgnores())), mDefaultTrading(new CheckBox(_("Allow trading"), player_relations.getDefault() & PlayerRelation::TRADE)), mDefaultWhisper(new CheckBox(_("Allow whispers"), @@ -288,9 +286,8 @@ Setup_Players::Setup_Players(): place(0, 6, mWhisperTabCheckBox); place(2, 5, ignore_action_label); place(2, 6, mIgnoreActionChoicesBox, 2).setPadding(2); - place(2, 7, mPersistIgnores); - place(2, 8, mDefaultTrading); - place(2, 9, mDefaultWhisper); + place(2, 7, mDefaultTrading); + place(2, 8, mDefaultWhisper); player_relations.addListener(this); @@ -326,7 +323,6 @@ void Setup_Players::reset() void Setup_Players::apply() { - player_relations.setPersistIgnores(mPersistIgnores->isSelected()); player_relations.store(); unsigned int old_default_relations = player_relations.getDefault() & |