Removed unnecessary and incorrect cast to (TreeWidget *) causing a crash.