Repository navigation
FIX(client): Specify version when loading/saving MainWindow state - #6584
Merged
davidebeatrici merged 2 commits intoNov 9, 2024
Merged
Conversation
davidebeatrici
commented
Sep 30, 2024
Member
|
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. |
Member
Author
You mean hashing the file itself? |
Member
|
Yes, exactly. Such that the hash changes every time we change the UI file. |
davidebeatrici
force-pushed
the
mainwindow-state-version
branch
from
October 5, 2024 02:42
e6a2de7 to
e213a06
Compare
Krzmbrzl
reviewed
Oct 5, 2024
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.
davidebeatrici
force-pushed
the
mainwindow-state-version
branch
from
October 6, 2024 02:59
e213a06 to
0a03d4e
Compare
Hartmnt
approved these changes
Oct 14, 2024
Hartmnt
left a comment
Member
There was a problem hiding this comment.
Looks good. I did not test it though.
Member
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Hartmnt
added a commit
that referenced
this pull request
Dec 10, 2024
…aving MainWindow state" to 1.5.x (#6625)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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