summaryrefslogtreecommitdiff
path: root/src/gui/windows/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-27 00:43:20 +0300
commit30ba8a737da8b1811397786106085f2c13167803 (patch)
tree09e52b2fcb8ac35d3de76781de7508dc6a9c9278 /src/gui/windows/socialwindow.cpp
parent03f4d4beaaa2ea4ac99aa746460283d4ca644a3f (diff)
downloadmanaplus-30ba8a737da8b1811397786106085f2c13167803.tar.gz
manaplus-30ba8a737da8b1811397786106085f2c13167803.tar.bz2
manaplus-30ba8a737da8b1811397786106085f2c13167803.tar.xz
manaplus-30ba8a737da8b1811397786106085f2c13167803.zip
Remove default parameters from window.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r--src/gui/windows/socialwindow.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp
index 062041b32..357564ae3 100644
--- a/src/gui/windows/socialwindow.cpp
+++ b/src/gui/windows/socialwindow.cpp
@@ -63,12 +63,12 @@ SocialWindow::SocialWindow() :
mPickupFilter(nullptr),
// TRANSLATORS: here P is title for visible players tab in social window
mPlayers(new SocialPlayersTab(this, _("P"),
- fromBool(getOptionBool("showtabbackground"), Opaque))),
+ fromBool(getOptionBool("showtabbackground", false), Opaque))),
mNavigation(new SocialNavigationTab(this,
- fromBool(getOptionBool("showtabbackground"), Opaque))),
+ fromBool(getOptionBool("showtabbackground", false), Opaque))),
// TRANSLATORS: here F is title for friends tab in social window
mFriends(new SocialFriendsTab(this, _("F"),
- fromBool(getOptionBool("showtabbackground"), Opaque))),
+ fromBool(getOptionBool("showtabbackground", false), Opaque))),
// TRANSLATORS: social window button
mMenuButton(new Button(this, _("Menu"), "menu", this)),
mCountLabel(new Label(this, "1000 / 1000")),
@@ -116,7 +116,7 @@ void SocialWindow::postInit()
if (config.getBoolValue("enableAttackFilter"))
{
mAttackFilter = new SocialAttackTab(this,
- fromBool(getOptionBool("showtabbackground"), Opaque));
+ fromBool(getOptionBool("showtabbackground", false), Opaque));
mTabs->addTab(mAttackFilter, mAttackFilter->mScroll);
}
else
@@ -127,7 +127,7 @@ void SocialWindow::postInit()
if (config.getBoolValue("enablePickupFilter"))
{
mPickupFilter = new SocialPickupTab(this,
- fromBool(getOptionBool("showtabbackground"), Opaque));
+ fromBool(getOptionBool("showtabbackground", false), Opaque));
mTabs->addTab(mPickupFilter, mPickupFilter->mScroll);
}
else
@@ -195,13 +195,13 @@ bool SocialWindow::addTab(Guild *const guild)
if (guild->getServerGuild())
{
tab = new SocialGuildTab(this, guild,
- fromBool(getOptionBool("showtabbackground"), Opaque));
+ fromBool(getOptionBool("showtabbackground", false), Opaque));
}
#ifdef TMWA_SUPPORT
else
{
tab = new SocialGuildTab2(this, guild,
- fromBool(getOptionBool("showtabbackground"), Opaque));
+ fromBool(getOptionBool("showtabbackground", false), Opaque));
}
#endif // TMWA_SUPPORT
@@ -237,7 +237,7 @@ bool SocialWindow::addTab(Party *const party)
return false;
SocialPartyTab *const tab = new SocialPartyTab(this, party,
- fromBool(getOptionBool("showtabbackground"), Opaque));
+ fromBool(getOptionBool("showtabbackground", false), Opaque));
mParties[party] = tab;
mTabs->addTab(tab, tab->mScroll);