From 257fa6b93daa151dcaacf1f45f0111d6c4187d37 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Fri, 4 Dec 2009 09:09:01 -0700 Subject: Reset the cursor when a window is hidden --- src/gui/sell.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/sell.cpp') 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) -- cgit v1.2.3-70-g09d2