diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-20 01:00:19 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-20 13:55:43 +0300 |
commit | 79b4bbbe0ead006bec273c247eaa50c2fd585863 (patch) | |
tree | 4e4515e5623b74ae3de48fd6f5dac2b7c2a493d5 /src/gui/setup_relations.cpp | |
parent | 41adf71a823f475b7f12b00e06056b778311da84 (diff) | |
download | plus-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.gz plus-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.bz2 plus-79b4bbbe0ead006bec273c247eaa50c2fd585863.tar.xz plus-79b4bbbe0ead006bec273c247eaa50c2fd585863.zip |
Add palette inheritance to checkbox class.
Diffstat (limited to 'src/gui/setup_relations.cpp')
-rw-r--r-- | src/gui/setup_relations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/setup_relations.cpp b/src/gui/setup_relations.cpp index a73621933..74a440434 100644 --- a/src/gui/setup_relations.cpp +++ b/src/gui/setup_relations.cpp @@ -243,9 +243,9 @@ Setup_Relations::Setup_Relations(const Widget2 *const widget) : mPlayerTable(new GuiTable(mPlayerTableModel)), mPlayerTitleTable(new GuiTable(mPlayerTableTitleModel)), mPlayerScrollArea(new ScrollArea(mPlayerTable)), - mDefaultTrading(new CheckBox(_("Allow trading"), + mDefaultTrading(new CheckBox(this, _("Allow trading"), player_relations.getDefault() & PlayerRelation::TRADE)), - mDefaultWhisper(new CheckBox(_("Allow whispers"), + mDefaultWhisper(new CheckBox(this, _("Allow whispers"), player_relations.getDefault() & PlayerRelation::WHISPER)), mDeleteButton(new Button(this, _("Delete"), ACTION_DELETE, this)) { |