From 353560a2829fb9b1d9d26121658ce83589c4f5ef Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Wed, 22 Aug 2007 09:05:24 +0000 Subject: Added close button and item shortcut backgrounds to files that will be installed. --- src/itemshortcut.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/itemshortcut.cpp') 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); } } } -- cgit v1.2.3-60-g2f50