diff options
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index 53d121f6..c212d506 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -45,9 +45,9 @@ ItemShortcut::~ItemShortcut() void ItemShortcut::load() { - for(int i = 0; i < SHORTCUT_ITEMS; i++) + for (int i = 0; i < SHORTCUT_ITEMS; i++) { - int itemId = (int) config.getValue("itemShortcut"+toString(i), -1.0); + int itemId = (int) config.getValue("itemShortcut" + toString(i), -1); if (itemId != -1) { @@ -62,15 +62,15 @@ void ItemShortcut::load() void ItemShortcut::save() { - for(int i = 0; i < SHORTCUT_ITEMS; i++) + for (int i = 0; i < SHORTCUT_ITEMS; i++) { if (mItems[i]) { - config.setValue("shortcut"+toString(i), mItems[i]->getId()); + config.setValue("shortcut" + toString(i), mItems[i]->getId()); } else { - config.setValue("shortcut"+toString(i), -1); + config.setValue("shortcut" + toString(i), -1); } } } |