summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-13 22:12:58 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-13 22:12:58 +0300
commit3f87e3c0f191d72c3295955736a057430b3ab661 (patch)
treece357b5b97c82015ea90e40bbfe302111a981ecf /src
parentd2f4bf9efb3009bde48b3f33ed81897693539503 (diff)
downloadplus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.gz
plus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.bz2
plus-3f87e3c0f191d72c3295955736a057430b3ab661.tar.xz
plus-3f87e3c0f191d72c3295955736a057430b3ab661.zip
In skill dialog dont show skill popup on empty place.
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/skilllistbox.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h
index b386b4851..94485f5cf 100644
--- a/src/gui/widgets/skilllistbox.h
+++ b/src/gui/widgets/skilllistbox.h
@@ -195,6 +195,8 @@ class SkillListBox final : public ListBox
return;
const SkillInfo *const skill = getSkillByEvent(event);
+ if (!skill)
+ return;
skillPopup->show(skill);
skillPopup->position(viewport->mMouseX, viewport->mMouseY);
}