merge PassiveObject/Spawner

fixed close bug in mainwindow