fix: cast for UBApplication object during construction#1010
fix: cast for UBApplication object during construction#1010kaamui merged 1 commit intoOpenBoard-org:devfrom
Conversation
- avoid to static_cast UBApplication object while constructor is still not completed - fixes problem to determine userDirectory before ApplicationName and OrganizationName are defined
|
From a cursory Of course, the issue remains that |
It is related in the following way:
I was thinking about better checks for
So I don't think that any further check is necessary. |
|
Thanks for detailing the causal relationship. I agree, this is the best course of action. This shows how "set at first use" is flawed, but I can't think of anything better. |
maehne
left a comment
There was a problem hiding this comment.
Looks good to me, as already stated in issue #1004 . Thanks @letsfindaway for the detailed analysis of the problem's cause!

This PR fixes some strange problems we recently had with OpenBoard using the wrong user data directory. Especially it helps (or even solves?) the problems described in