summaryrefslogtreecommitdiff
path: root/src/dropshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-02-25 01:20:00 +0200
committerAndrei Karas <akaras@inbox.ru>2011-02-25 01:38:14 +0200
commit5322d978519f9d5677d2096e1167439c84b23cd1 (patch)
treedfe6324fb6d3b573290687716dd98e45efb76019 /src/dropshortcut.cpp
parent473dc9b1949ba7c51b59146815969b723a748d6d (diff)
downloadmanaplus-5322d978519f9d5677d2096e1167439c84b23cd1.tar.gz
manaplus-5322d978519f9d5677d2096e1167439c84b23cd1.tar.bz2
manaplus-5322d978519f9d5677d2096e1167439c84b23cd1.tar.xz
manaplus-5322d978519f9d5677d2096e1167439c84b23cd1.zip
Add tabs to spells window. Now it 5 tabs.
Also dont save to configs default cell items for different item containers.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp
index 763a7aadd..55046c0f6 100644
--- a/src/dropshortcut.cpp
+++ b/src/dropshortcut.cpp
@@ -75,7 +75,10 @@ void DropShortcut::save()
for (int i = 0; i < DROP_SHORTCUT_ITEMS; i++)
{
const int itemId = mItems[i] ? mItems[i] : -1;
- serverConfig.setValue("drop" + toString(i), itemId);
+ if (itemId != -1)
+ serverConfig.setValue("drop" + toString(i), itemId);
+ else
+ serverConfig.deleteKey("drop" + toString(i));
}
}