summaryrefslogtreecommitdiff
path: root/src/gui/socialwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-04-02 00:53:22 +0300
committerAndrei Karas <akaras@inbox.ru>2013-04-02 00:53:22 +0300
commit2f6f5950605e3ffe8054f3a2675f10032ca0aaf6 (patch)
tree8cbbc807f00bc4aeffc103058d223863c8de643f /src/gui/socialwindow.cpp
parent28165cbeca05b74cf66f121757f21f4cb7cd381e (diff)
downloadplus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.gz
plus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.bz2
plus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.xz
plus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.zip
improve guildhandler class.
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r--src/gui/socialwindow.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/gui/socialwindow.cpp b/src/gui/socialwindow.cpp
index 2b3ec2c3a..6514f5922 100644
--- a/src/gui/socialwindow.cpp
+++ b/src/gui/socialwindow.cpp
@@ -1182,8 +1182,6 @@ public:
mBrowserBox->setOpaque(false);
mBrowserBox->setLinkHandler(this);
- if (Net::getGuildHandler()->isSupported())
- mBrowserBox->addRow(strprintf("@@guild|%s@@", _("Create Guild")));
mBrowserBox->addRow(strprintf("@@party|%s@@", _("Create Party")));
mBrowserBox->addRow("##3---");
mBrowserBox->addRow(strprintf("@@cancel|%s@@", _("Cancel")));
@@ -1488,15 +1486,7 @@ void SocialWindow::action(const gcn::ActionEvent &event)
}
else if (eventId == "create")
{
- if (Net::getGuildHandler()->isSupported())
- {
- if (mCreatePopup)
- mCreatePopup->show(mCreateButton);
- }
- else
- {
- showPartyCreate();
- }
+ showPartyCreate();
}
else if (eventId == "invite" && mTabs->getSelectedTabIndex() > -1)
{