summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-12-04 09:09:01 -0700
committerJared Adams <jaxad0127@gmail.com>2009-12-04 09:09:01 -0700
commit257fa6b93daa151dcaacf1f45f0111d6c4187d37 (patch)
treedd8f43c2c93f8d15e84e01a0eff090f7ae269a9b /src/gui/sell.cpp
parentd88c6a103aed290039a608e1f2d7e04b5a5a503f (diff)
downloadmana-client-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.gz
mana-client-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.bz2
mana-client-257fa6b93daa151dcaacf1f45f0111d6c4187d37.tar.xz
mana-client-257fa6b93daa151dcaacf1f45f0111d6c4187d37.zip
Reset the cursor when a window is hidden
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index 4082b881..1194222b 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -286,8 +286,7 @@ void SellDialog::logic()
{
Window::logic();
- if (!current_npc)
- setVisible(false);
+ if (!current_npc && isVisible()) setVisible(false);
}
void SellDialog::setVisible(bool visible)