Delay opening a query until the context menu has been closed (#86)