diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-22 23:25:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-22 23:25:53 +0300 |
commit | 03e7901322461a881cc59fc321234e1efee0fa0e (patch) | |
tree | 4aa0a3b23d6c1056f73c50cc54b39992c5193ccc /src/gui/setup_relations.cpp | |
parent | b26e979730e39e149b55b2a5dfc1775c856e9518 (diff) | |
download | mv-03e7901322461a881cc59fc321234e1efee0fa0e.tar.gz mv-03e7901322461a881cc59fc321234e1efee0fa0e.tar.bz2 mv-03e7901322461a881cc59fc321234e1efee0fa0e.tar.xz mv-03e7901322461a881cc59fc321234e1efee0fa0e.zip |
Remove button "old" from relation settings page.
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r-- | src/gui/setup_relations.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index d685cf6f5..d40995ac2 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -229,7 +229,6 @@ public: }; #define ACTION_DELETE "delete" -#define ACTION_OLD "old" #define ACTION_TABLE "table" #define ACTION_STRATEGY "strategy" @@ -243,8 +242,7 @@ Setup_Relations::Setup_Relations(): player_relations.getDefault() & PlayerRelation::TRADE)), mDefaultWhisper(new CheckBox(_("Allow whispers"), player_relations.getDefault() & PlayerRelation::WHISPER)), - mDeleteButton(new Button(_("Delete"), ACTION_DELETE, this)), - mOldButton(new Button(_("Old"), ACTION_OLD, this)) + mDeleteButton(new Button(_("Delete"), ACTION_DELETE, this)) { setName(_("Relations")); @@ -294,7 +292,6 @@ Setup_Relations::Setup_Relations(): place(0, 0, mPlayerTitleTable, 6); place(0, 1, mPlayerScrollArea, 6, 4).setPadding(2); place(0, 5, mDeleteButton); - place(1, 5, mOldButton, 1); place(3, 5, ignore_action_label, 1); place(4, 5, mIgnoreActionChoicesBox, 2).setPadding(2); place(3, 6, mDefaultTrading, 3); @@ -385,11 +382,6 @@ void Setup_Relations::action(const gcn::ActionEvent &event) player_relations.removePlayer(name); } - else if (event.getId() == ACTION_OLD) - { - player_relations.load(true); - updateAll(); - } else if (event.getId() == ACTION_STRATEGY) { PlayerIgnoreStrategy *s = |