fixed crash when closing app

Ignore-this: e5764a291b8a927a0e8e3aa70a14373

I should let QT manage the widgets..hmm

darcs-hash:20140502222424-c21fe-4ebb7e85d68204f7dcb3b711e20b848284fb5c26