(fix/UX) Track menu: Left key in Search related & Crates menus closes them again - #13602
(fix/UX) Track menu: Left key in Search related & Crates menus closes them again#13602ronso0 wants to merge 1 commit into
Conversation
bba8f41 to
693c17e
Compare
cr7pt0gr4ph7
left a comment
There was a problem hiding this comment.
LGTM. The issue fixed by this is still present in main, so maybe merge it to main if it should already be too late for 2.5.
|
I tried this and it crashed with: |
|
@JoergAtGithub I can't reproduce the crasher. It looks like a dangling pointer access. Unfortunately I cannot reproduce the issue. |
acolombier
left a comment
There was a problem hiding this comment.
friendly ping @JoergAtGithub - are you able to provide reproduction steps for this bug?
|
I extended that to ignore Right key as suggested by @JoergAtGithub |
6ce08a7 to
7ca7aea
Compare
|
I just tested 7ca7aea on Windows and it still crashes sporadic with a read access violation: The stacktrace below was from an exception after pressing the right arrow button to open the search menu, which I closed immediately before with the left arrow button: |
cd725b1 to
d7d5934
Compare
|
@JoergAtGithub Do you use the Search Related menu currently? |
7ca7aea to
7b971e8
Compare
|
I have reworked the creation of Search Related so it's not cleared on every aboutToShow event. Hopefully that fixes the crasher. |
7b971e8 to
63ff487
Compare
63ff487 to
39a5996
Compare
|
Is this still in draft state? |
|
It's ready for review. |
|
@JoergAtGithub I think the crash you saw #13602 (comment) is #15197, hence unrelated to this PR |
|
Conflict have developed. |
39a5996 to
0706518
Compare
|
I rebased now that #16697 has been merged |
|
@JoergAtGithub can this be merged now? |
If a QWidgetAction in either Search related & Crates menu is focused, Left/Right keys are translated to Up/Down which prevents closing the submenus with Left key like in other submenus.
(in the Crates menu left works as soon as the New Crate button is reached)
Fix:
Translate Left to Esc to close this submenu.Call hide() of the respective sumenu.
For fixing the crates menu this should actually go to 2.4 ("Search related Tracks" has QWidgetActions only in 2.5), but since we're going to release that shortly before 2.5 I think it's okay to merge the double fix to 2.5-beta