summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-22 09:05:24 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-08-22 09:05:24 +0000
commit353560a2829fb9b1d9d26121658ce83589c4f5ef (patch)
treea4eeb6f2f4f6d7eacdea7016fa8df034efd6788c /src/itemshortcut.cpp
parenta444a76ed37a52ba0004298f2512bee1c75273bc (diff)
downloadmana-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.gz
mana-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.bz2
mana-353560a2829fb9b1d9d26121658ce83589c4f5ef.tar.xz
mana-353560a2829fb9b1d9d26121658ce83589c4f5ef.zip
Added close button and item shortcut backgrounds to files that will be
installed.
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp10
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);
}
}
}