summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-09 04:09:25 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-11-12 02:51:31 +0100
commit454c49e4e136ed2a43fd118fcd830f04e114472a (patch)
tree17056473325cf36fb2bad15e34a4b6e1c6532c43 /src/gui/widgets/button.cpp
parent06c26c4b05560a09f070930a03635650a3fba351 (diff)
downloadmana-454c49e4e136ed2a43fd118fcd830f04e114472a.tar.gz
mana-454c49e4e136ed2a43fd118fcd830f04e114472a.tar.bz2
mana-454c49e4e136ed2a43fd118fcd830f04e114472a.tar.xz
mana-454c49e4e136ed2a43fd118fcd830f04e114472a.zip
Fixed the button popup incorrectly shown when loading the window menu.
This was due to a small logic error when setting the popup text. Reviewed-by: Erik Schilling
Diffstat (limited to 'src/gui/widgets/button.cpp')
-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);
}