Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UI improvements #51

Merged
merged 3 commits into from
May 2, 2016
Merged

UI improvements #51

merged 3 commits into from
May 2, 2016

Conversation

feragon
Copy link
Member

@feragon feragon commented May 2, 2016

No description provided.

@rvt rvt merged commit ed079ee into LibreCAD:master May 2, 2016
return _cursor;
}

unsigned int CadMdiChild::id() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we change the _id type to "unsigned long long"?

even though it's mostly 32 bit for "unsigned int", the C++ standard only requires "unsigned int" type to be at least 16 bit.

I suppose we need 64 bit to avoid collision on a busy system.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If _id is only 16 bits that makes 65536 new documents, that's possible if someone never close the program.
I think the better solution is to reuse the id of closed documents, then all the windows would have to be opened at the same time to obtain a collision. It should be possible by calling a Lua function with Qt destroyed event

@XVilka XVilka mentioned this pull request Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants