From 454c49e4e136ed2a43fd118fcd830f04e114472a Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 9 Nov 2011 04:09:25 +0100 Subject: 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 --- src/gui/widgets/button.cpp | 4 +--- 1 file changed, 1 insertion(+), 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); } -- cgit v1.2.3-70-g09d2