summaryrefslogtreecommitdiff
path: root/src/gui/shortcut
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-13 19:13:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-13 19:13:36 +0300
commitf52ab4a3f37137045be920bbefce8b223fc75b3a (patch)
treea5c3d0e5d8d9913b3c43e82e241433b57fb83150 /src/gui/shortcut
parentc676f4b880ed0abd644085e587e98e3f6ba1c16b (diff)
downloadplus-f52ab4a3f37137045be920bbefce8b223fc75b3a.tar.gz
plus-f52ab4a3f37137045be920bbefce8b223fc75b3a.tar.bz2
plus-f52ab4a3f37137045be920bbefce8b223fc75b3a.tar.xz
plus-f52ab4a3f37137045be920bbefce8b223fc75b3a.zip
Fix saving skills with maximum level into shortcuts bar.s20160713
Diffstat (limited to 'src/gui/shortcut')
-rw-r--r--src/gui/shortcut/itemshortcut.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp
index 4349f1c44..664f7e859 100644
--- a/src/gui/shortcut/itemshortcut.cpp
+++ b/src/gui/shortcut/itemshortcut.cpp
@@ -103,13 +103,10 @@ void ItemShortcut::save() const
color = "shortcutColor";
}
- logger->log("save %s", name.c_str());
-
for (unsigned int i = 0; i < SHORTCUT_ITEMS; i++)
{
const int itemId = mItems[i] ? mItems[i] : -1;
- const int itemColor = (mItemColors[i] != ItemColor_zero) ?
- toInt(mItemColors[i], int) : 1;
+ const int itemColor = toInt(mItemColors[i], int);
if (itemId != -1)
{
serverConfig.setValue(name + toString(i), itemId);