mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-17 21:04:19 -05:00
Show context menus with popup() instead of exec().
exec() blocks the event loop.
This commit is contained in:
parent
50391e144d
commit
267e88001b
@ -530,10 +530,10 @@ void DatabaseWidget::updateEntryActions()
|
|||||||
|
|
||||||
void DatabaseWidget::showGroupContextMenu(const QPoint& pos)
|
void DatabaseWidget::showGroupContextMenu(const QPoint& pos)
|
||||||
{
|
{
|
||||||
m_menuGroup->exec(m_groupView->viewport()->mapToGlobal(pos));
|
m_menuGroup->popup(m_groupView->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
|
||||||
void DatabaseWidget::showEntryContextMenu(const QPoint& pos)
|
void DatabaseWidget::showEntryContextMenu(const QPoint& pos)
|
||||||
{
|
{
|
||||||
m_menuEntry->exec(m_entryView->viewport()->mapToGlobal(pos));
|
m_menuEntry->popup(m_entryView->viewport()->mapToGlobal(pos));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user