1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

Using deleteLater() when deleting temporary menu in locationbar

- also in websearchbar
This commit is contained in:
nowrep 2012-02-14 17:01:31 +01:00
parent 6bb292efec
commit ccb3863ccc
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ void LocationBar::contextMenuEvent(QContextMenuEvent* event)
++i; ++i;
} }
delete tempMenu; tempMenu->deleteLater();
m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty()); m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty());

View File

@ -249,7 +249,7 @@ void WebSearchBar::contextMenuEvent(QContextMenuEvent* event)
++i; ++i;
} }
delete tempMenu; tempMenu->deleteLater();
m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty()); m_pasteAndGoAction->setEnabled(!QApplication::clipboard()->text().isEmpty());