diff options
-rw-r--r-- | src/gui/shortcut/itemshortcut.cpp | 5 |
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); |