Show context menus with popup() instead of exec().

exec() blocks the event loop.
This commit is contained in:
Felix Geyer 2012-05-26 17:01:48 +02:00
parent 50391e144d
commit 267e88001b

View File

@ -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));
} }