mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Using deleteLater() when deleting temporary menu in locationbar
- also in websearchbar
This commit is contained in:
parent
6bb292efec
commit
ccb3863ccc
|
@ -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());
|
||||||
|
|
||||||
|
|
|
@ -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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user