-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
FIX(client): Specify version when loading/saving MainWindow state #6584
FIX(client): Specify version when loading/saving MainWindow state #6584
Conversation
I would go a step further and compute a hash from the The hashing could be done by cmake and then be passed to the code as a macro. |
You mean hashing the file itself? |
Yes, exactly. Such that the hash changes every time we change the UI file. |
e6a2de7
to
e213a06
Compare
This fixes a crash caused by the state being incompatible between Qt 5 and 6. Also, by having MainWindow.ui's hash as part of the version seed we can avoid potential bugs/glitches that may arise when MainWindow's widgets are changed.
e213a06
to
0a03d4e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I did not test it though.
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
This fixes a crash caused by the state being incompatible between Qt 5 and 6.
Please note that the default argument value for
restoreState()
is 0: https://doc.qt.io/qt-6/qmainwindow.html#restoreState