Popup editor closed itself too eagerly; bug from #f5a2923e (lib)