diff options
Diffstat (limited to 'src/itemshortcut.cpp')
-rw-r--r-- | src/itemshortcut.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/itemshortcut.cpp b/src/itemshortcut.cpp index 4509b1d70..b15e618d7 100644 --- a/src/itemshortcut.cpp +++ b/src/itemshortcut.cpp @@ -81,7 +81,10 @@ void ItemShortcut::save() for (int i = 0; i < SHORTCUT_ITEMS; i++) { const int itemId = mItems[i] ? mItems[i] : -1; - serverConfig.setValue(name + toString(i), itemId); + if (itemId != -1) + serverConfig.setValue(name + toString(i), itemId); + else + serverConfig.deleteKey(name + toString(i)); } } |