summaryrefslogtreecommitdiff
path: root/src/dropshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dropshortcut.cpp')
-rw-r--r--src/dropshortcut.cpp7
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();
}