diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-11-22 22:34:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-11-22 22:34:49 +0300 |
commit | 69f04f12d9793e93ea76874f71b7c99c55459b10 (patch) | |
tree | 722ed2fa069c4f58f0415c3004ebae5e67f66016 /src/dropshortcut.cpp | |
parent | ce1d5543c64be5c101908c20768ecb448737f2d0 (diff) | |
download | plus-69f04f12d9793e93ea76874f71b7c99c55459b10.tar.gz plus-69f04f12d9793e93ea76874f71b7c99c55459b10.tar.bz2 plus-69f04f12d9793e93ea76874f71b7c99c55459b10.tar.xz plus-69f04f12d9793e93ea76874f71b7c99c55459b10.zip |
Fix drops shortcuts loading.
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r-- | src/dropshortcut.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/dropshortcut.cpp b/src/dropshortcut.cpp index 4e0718d16..1211c228d 100644 --- a/src/dropshortcut.cpp +++ b/src/dropshortcut.cpp @@ -43,7 +43,7 @@ DropShortcut::DropShortcut() : mItemColorSelected(1), mLastDropIndex(0) { - clear(); + clear(false); load(); } @@ -224,12 +224,13 @@ void DropShortcut::setItem(const int index) save(); } -void DropShortcut::clear() +void DropShortcut::clear(bool isSave) { for (int i = 0; i < DROP_SHORTCUT_ITEMS; i++) { mItems[i] = -1; mItemColors[i] = 1; } - save(); + if (isSave) + save(); } |