ma7t3 / ScheduleMaster

ScheduleMaster is a free and open source rich-feature timetable and tour planning software.
https://github.com/users/ma7t3/projects/5
GNU General Public License v3.0
1 stars 0 forks source link

Better and more secure way to create new ProjectDataItem instances #35

Closed ma7t3 closed 6 months ago

ma7t3 commented 6 months ago

There are still issues with all kind of projectData with it's QObject::parenting, so we can't ensure that all of that data is deleted correctly when the file is closed but also the application crashes sometimes when stuff is deleted, which is still necessary. This is a huge problem, especially when it comes to larger projects and bigger amount of data. We use the QObject's parenting and object hierarchy system to control when an object should be deleted. But the problem is: new Objects are created all over the entire application and it's not possible to ensure that all objects always get the correct parent. To fix this issue and improve the code I suggest:

ma7t3 commented 6 months ago

ToDo classes: