diff options
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index abd53c1..9f643b7 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -142,7 +142,7 @@ void ShortcutCollector::removeBinding(QKeySequence binding) auto bindingHandle = m_bindings.extract(binding); if (bindingHandle) { m_layout->removeWidget(bindingHandle.mapped()); - delete bindingHandle.mapped(); + bindingHandle.mapped()->deleteLater(); } else { qWarning("Could not remove widget!"); } |