summaryrefslogtreecommitdiff
path: root/src/dragdrop.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-07-03 21:20:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-07-03 21:20:31 +0300
commitcb573ac24373a908ff549c35c3a80dd31b2fdea5 (patch)
treee63d24c33a760fc6d408a09900fc1e02dc603c00 /src/dragdrop.h
parenta1bd0179b28fa93c771bc5602f64746878f0ffad (diff)
downloadplus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.gz
plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.bz2
plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.tar.xz
plus-cb573ac24373a908ff549c35c3a80dd31b2fdea5.zip
add drag and drop support between inventory and storage.
Diffstat (limited to 'src/dragdrop.h')
-rw-r--r--src/dragdrop.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/dragdrop.h b/src/dragdrop.h
index e58263cc9..4ca9a2bc3 100644
--- a/src/dragdrop.h
+++ b/src/dragdrop.h
@@ -57,7 +57,7 @@ class DragDrop
mSelItemColor(1),
mSource(source),
mText(),
- mTag()
+ mTag(-1)
{
if (mItemImage)
mItemImage->incRef();
@@ -107,7 +107,7 @@ class DragDrop
mItemColor = 1;
mItemImage = nullptr;
mSource = DRAGDROP_SOURCE_EMPTY;
- mTag = 0;
+ mTag = -1;
}
}
@@ -131,7 +131,7 @@ class DragDrop
else if (mText.empty())
{
mSource = source;
- mTag = 0;
+ mTag = -1;
return;
}
mItem = command->getId();
@@ -156,7 +156,7 @@ class DragDrop
mText.clear();
mItemImage = nullptr;
mSource = DRAGDROP_SOURCE_EMPTY;
- mTag = 0;
+ mTag = -1;
if (info)
{
const SkillData *const data = info->data;
@@ -182,6 +182,7 @@ class DragDrop
mItemImage = nullptr;
mSource = DRAGDROP_SOURCE_EMPTY;
mText.clear();
+ mTag = -1;
}
bool isEmpty() const