diff --git a/apps/opencs/model/prefs/shortcutmanager.cpp b/apps/opencs/model/prefs/shortcutmanager.cpp index 3e81a5e3d..740179b25 100644 --- a/apps/opencs/model/prefs/shortcutmanager.cpp +++ b/apps/opencs/model/prefs/shortcutmanager.cpp @@ -4,6 +4,8 @@ #include #include +#include +#include #include "shortcut.hpp" @@ -27,7 +29,7 @@ namespace CSMPrefs { if (it->second == shortcut) { - it = mShortcuts.erase(it); + mShortcuts.erase(it++); } else { @@ -45,7 +47,7 @@ namespace CSMPrefs { if (it->second == wrapper) { - it = mShortcutWrappers.erase(it); + mShortcutWrappers.erase(it++); } else {