summaryrefslogtreecommitdiff
path: root/src/gui/popups/itempopup.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-07-15 02:37:23 +0300
committerAndrei Karas <akaras@inbox.ru>2015-07-15 02:37:23 +0300
commit5fc61f321cbe6c8f4a4e6529c27603302f3d5eba (patch)
tree7b5561a239e10bb6437b94a681f66c524c4d8d91 /src/gui/popups/itempopup.cpp
parent4761556e5e4cf8471ab65c65c2b3fd4003ac5ba0 (diff)
downloadmanaverse-5fc61f321cbe6c8f4a4e6529c27603302f3d5eba.tar.gz
manaverse-5fc61f321cbe6c8f4a4e6529c27603302f3d5eba.tar.bz2
manaverse-5fc61f321cbe6c8f4a4e6529c27603302f3d5eba.tar.xz
manaverse-5fc61f321cbe6c8f4a4e6529c27603302f3d5eba.zip
Update existing item after inserting card.
Diffstat (limited to 'src/gui/popups/itempopup.cpp')
-rw-r--r--src/gui/popups/itempopup.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/popups/itempopup.cpp b/src/gui/popups/itempopup.cpp
index 2374f693b..33b2eba91 100644
--- a/src/gui/popups/itempopup.cpp
+++ b/src/gui/popups/itempopup.cpp
@@ -330,6 +330,11 @@ void ItemPopup::mouseMoved(MouseEvent &event)
// When the mouse moved on top of the popup, hide it
setVisible(Visible_false);
+ resetPopup();
+}
+
+void ItemPopup::resetPopup()
+{
mLastName.clear();
mLastColor = 1;
mLastId = 0;