diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-02-02 16:43:30 +0100 |
---|---|---|
committer | Jesusalva Jesusalva <jesusalva@themanaworld.org> | 2024-02-09 13:33:57 +0000 |
commit | 23ef2073c81f3c98075161ebd0ee6084967aefc5 (patch) | |
tree | 487b3c1414e2a47ed2c68cf41c5eb1f5156f112f /src/gui/widgets | |
parent | c92f71514c54641340b7c11f95357a9a4d35b27e (diff) | |
download | manaverse-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.gz manaverse-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.bz2 manaverse-23ef2073c81f3c98075161ebd0ee6084967aefc5.tar.xz manaverse-23ef2073c81f3c98075161ebd0ee6084967aefc5.zip |
Fix dragging lum (first item) out of the spells window.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/spellshortcutcontainer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/widgets/spellshortcutcontainer.cpp b/src/gui/widgets/spellshortcutcontainer.cpp index 88d3d26ef..f7ee1bdf0 100644 --- a/src/gui/widgets/spellshortcutcontainer.cpp +++ b/src/gui/widgets/spellshortcutcontainer.cpp @@ -232,7 +232,7 @@ void SpellShortcutContainer::mousePressed(MouseEvent &event) if (eventButton == MouseButton::LEFT) { const int itemId = getItemByIndex(index); - if (itemId > 0) + if (itemId >= 0) mSpellClicked = true; event.consume(); } |