vogleditor: Fix crash when closing settings dialog due to accessing a
deleted object.