From 2b641aa2f4f5b894ceed8bf2a46fcef35e930d56 Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 10 Nov 2024 15:14:38 -0600 Subject: Refactorings from libfud. --- src/settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/settings.cpp') 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!"); } -- cgit v1.2.3