summaryrefslogtreecommitdiff
path: root/src/gui/widgets/skilllistbox.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-08-14 20:50:08 +0300
committerAndrei Karas <akaras@inbox.ru>2016-08-14 22:54:59 +0300
commit0204a75a049d6819719cf41ac92116012ed50d86 (patch)
treed2723719f22628a612c17b0f977054610c5720fd /src/gui/widgets/skilllistbox.h
parent3fc421539bc81f27262b91554694509f3e47f865 (diff)
downloadmv-0204a75a049d6819719cf41ac92116012ed50d86.tar.gz
mv-0204a75a049d6819719cf41ac92116012ed50d86.tar.bz2
mv-0204a75a049d6819719cf41ac92116012ed50d86.tar.xz
mv-0204a75a049d6819719cf41ac92116012ed50d86.zip
Allow drag cast type from skills window into shortcuts.
Diffstat (limited to 'src/gui/widgets/skilllistbox.h')
-rw-r--r--src/gui/widgets/skilllistbox.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/widgets/skilllistbox.h b/src/gui/widgets/skilllistbox.h
index 533d12b5e..ab45c5122 100644
--- a/src/gui/widgets/skilllistbox.h
+++ b/src/gui/widgets/skilllistbox.h
@@ -220,6 +220,9 @@ class SkillListBox final : public ListBox
return;
dragDrop.dragSkill(skill, DragDropSource::Skills);
dragDrop.setItem(skill->id + SKILL_MIN_ID);
+ // +++ using only cast type in data
+ dragDrop.setItemData(toString(CAST_S32(
+ skill->customCastType)));
}
ListBox::mouseDragged(event);
}