Made setData safer.
Merge github.com:mirror3000/WHC-IDE

Conflicts:
	src/model/projecttreemodel.cpp