summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/button.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/widgets/button.cpp b/src/gui/widgets/button.cpp
index f0d7e022..2664c655 100644
--- a/src/gui/widgets/button.cpp
+++ b/src/gui/widgets/button.cpp
@@ -357,8 +357,6 @@ void Button::mouseExited(gcn::MouseEvent &event)
void Button::setButtonPopupText(const std::string& text)
{
mPopupText = text;
- if (!mPopupText.empty())
- mTextPopup->show(getX(), getY(), mPopupText);
- else
+ if (mPopupText.empty())
mTextPopup->setVisible(false);
}