diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-08-18 17:21:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-08-18 17:21:20 +0300 |
commit | c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64 (patch) | |
tree | 4a304edf687dc9b32f640b3dab714baefb3715b5 /src/gui/windows/socialwindow.cpp | |
parent | 087a2f8802bb91ca06d4d82af4a132dd9a70267e (diff) | |
download | plus-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.gz plus-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.bz2 plus-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.tar.xz plus-c1dc5cd3ee07f3a7045f849d8e3557a3dbf16e64.zip |
Remove invite and leave buttons from social window.
Diffstat (limited to 'src/gui/windows/socialwindow.cpp')
-rw-r--r-- | src/gui/windows/socialwindow.cpp | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/src/gui/windows/socialwindow.cpp b/src/gui/windows/socialwindow.cpp index 63a88c06f..647fceb23 100644 --- a/src/gui/windows/socialwindow.cpp +++ b/src/gui/windows/socialwindow.cpp @@ -75,10 +75,6 @@ SocialWindow::SocialWindow() : mCreatePopup(CREATEWIDGETR0(CreatePartyPopup)), // TRANSLATORS: social window button mCreateButton(new Button(this, _("Create"), "create", this)), - // TRANSLATORS: social window button - mInviteButton(new Button(this, _("Invite"), "invite", this)), - // TRANSLATORS: social window button - mLeaveButton(new Button(this, _("Leave"), "leave", this)), mCountLabel(new Label(this, "1000 / 1000")), mTabs(CREATEWIDGETR(TabbedArea, this)), mMap(nullptr), @@ -107,10 +103,8 @@ void SocialWindow::postInit() setupWindow->registerWindowForReset(this); place(0, 0, mCreateButton); - place(1, 0, mInviteButton); - place(2, 0, mLeaveButton); place(0, 1, mCountLabel); - place(0, 2, mTabs, 4, 4); + place(0, 2, mTabs, 2, 4); widgetResized(Event(nullptr)); @@ -583,12 +577,10 @@ void SocialWindow::resetDamage(const std::string &name) void SocialWindow::updateButtons() { - if (!mTabs) - return; +// if (!mTabs) +// return; - const bool hasTabs = mTabs->getNumberOfTabs() > 0; - mInviteButton->setEnabled(hasTabs); - mLeaveButton->setEnabled(hasTabs); +// const bool hasTabs = mTabs->getNumberOfTabs() > 0; } void SocialWindow::updatePortals() |