diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-02 00:53:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-02 00:53:22 +0300 |
commit | 2f6f5950605e3ffe8054f3a2675f10032ca0aaf6 (patch) | |
tree | 8cbbc807f00bc4aeffc103058d223863c8de643f /src/gui/socialwindow.cpp | |
parent | 28165cbeca05b74cf66f121757f21f4cb7cd381e (diff) | |
download | manaplus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.gz manaplus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.bz2 manaplus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.tar.xz manaplus-2f6f5950605e3ffe8054f3a2675f10032ca0aaf6.zip |
improve guildhandler class.
Diffstat (limited to 'src/gui/socialwindow.cpp')
-rw-r--r-- | src/gui/socialwindow.cpp | 12 |
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) { |