From ccb3863ccca44be8def277cc9dcfc41eea50cb82 Mon Sep 17 00:00:00 2001 From: nowrep Date: Tue, 14 Feb 2012 17:01:31 +0100 Subject: [PATCH] Using deleteLater() when deleting temporary menu in locationbar - also in websearchbar --- src/navigation/locationbar.cpp | 2 +- src/navigation/websearchbar.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/navigation/locationbar.cpp b/src/navigation/locationbar.cpp index 293132e4d..8e4b04591 100644 --- a/src/navigation/locationbar.cpp +++ b/src/navigation/locationbar.cpp @@ -303,7 +303,7 @@ void LocationBar::contextMenuEvent(QContextMenuEvent* event) ++i; } - delete tempMenu; + tempMenu->deleteLater(); m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty()); diff --git a/src/navigation/websearchbar.cpp b/src/navigation/websearchbar.cpp index 8e25d82b9..d49df6530 100644 --- a/src/navigation/websearchbar.cpp +++ b/src/navigation/websearchbar.cpp @@ -249,7 +249,7 @@ void WebSearchBar::contextMenuEvent(QContextMenuEvent* event) ++i; } - delete tempMenu; + tempMenu->deleteLater(); m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty());