summaryrefslogtreecommitdiff
path: root/src/itemshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r--src/itemshortcut.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp
index 50bd85b7..22cb64b3 100644
--- a/src/itemshortcut.cpp
+++ b/src/itemshortcut.cpp
@@ -30,14 +30,11 @@
#include "utils/stringutils.h"
-ItemShortcut::ItemShortcut *itemShortcut;
+ItemShortcut *itemShortcut;
ItemShortcut::ItemShortcut():
mItemSelected(-1)
{
- for (int i = 0; i < SHORTCUT_ITEMS; i++)
- mItems[i] = -1;
-
load();
}
@@ -52,8 +49,7 @@ void ItemShortcut::load()
{
int itemId = (int) config.getValue("shortcut" + toString(i), -1);
- if (itemId != -1)
- mItems[i] = itemId;
+ mItems[i] = itemId;
}
}