summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/options_ei.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mir_app/src/options_ei.cpp b/src/mir_app/src/options_ei.cpp
index 19c38b4a57..c64d025d70 100644
--- a/src/mir_app/src/options_ei.cpp
+++ b/src/mir_app/src/options_ei.cpp
@@ -311,7 +311,7 @@ public:
oldSlots[i] = -1;
lastUsedSlot = max(lastUsedSlot, registeredExtraIcons[i]->getSlot());
}
- lastUsedSlot = max(lastUsedSlot, GetNumberOfSlots());
+ lastUsedSlot = min(lastUsedSlot, GetNumberOfSlots());
// Get user data and create new groups
LIST<ExtraIconGroup> groups(1);