diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-11-10 15:14:38 -0600 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-11-10 15:14:38 -0600 |
commit | 2b641aa2f4f5b894ceed8bf2a46fcef35e930d56 (patch) | |
tree | b5decb0fcd6a225c89d2ababb0fdf2d84b39a334 /src/settings.cpp | |
parent | 47e0ff88edd4660513f1d4f3d731008461532a13 (diff) |
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!"); } |