diff options
Diffstat (limited to 'src/gui/shortcut/itemshortcut.cpp')
-rw-r--r-- | src/gui/shortcut/itemshortcut.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/gui/shortcut/itemshortcut.cpp b/src/gui/shortcut/itemshortcut.cpp index 526baa265..7b9bab6e6 100644 --- a/src/gui/shortcut/itemshortcut.cpp +++ b/src/gui/shortcut/itemshortcut.cpp @@ -68,11 +68,12 @@ void ItemShortcut::load() const Configuration *cfg = &serverConfig; if (mNumber != 0) { - name = std::string("shortcut").append(toString(mNumber)).append("_"); + name = std::string("shortcut").append( + toString(CAST_S32(mNumber))).append("_"); color = std::string("shortcutColor").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); data = std::string("shortcutData").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); } else { @@ -102,11 +103,12 @@ void ItemShortcut::save() const return; if (mNumber != 0) { - name = std::string("shortcut").append(toString(mNumber)).append("_"); + name = std::string("shortcut").append( + toString(CAST_S32(mNumber))).append("_"); color = std::string("shortcutColor").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); data = std::string("shortcutData").append( - toString(mNumber)).append("_"); + toString(CAST_U32(mNumber))).append("_"); } else { |