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

Fix list widget selection bug #1625

Conversation

madoar
Copy link
Collaborator

@madoar madoar commented Dec 23, 2018

This PR fixes a bug where a list widget (a) doesn't show a selection, if the selection was has been performed in another list widget (b) before (a) has been opened once.

…done in another list widget before the current list widget has been opened once
*
* @param oldSelection The old/previous selection
*/
private void updateOldSelection(ListWidgetSelection<E> oldSelection) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are these methods different for all derived classes? (bit hard to see in the diff)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Both the DetailsListWidget and the CompactListWidget have the same methods.
The reason is, that I don't want to invest an additional base class for only two concrete derived classes.

@plata
Copy link
Collaborator

plata commented Dec 23, 2018

To be honest, I didn't quite understand what the issues were in end (in the pr description).

@madoar
Copy link
Collaborator Author

madoar commented Dec 23, 2018

Try the following:

  1. Open the applications tab
  2. Select the first application (which opens the details panel)
  3. Change the shown list widget

Now you'll see that the first application is not selected in the now open list widget.
This is the bug.

@madoar madoar merged commit 2faea2a into PhoenicisOrg:master Dec 23, 2018
@madoar madoar deleted the fix-selection-before-widget-initialisation-bug branch December 23, 2018 14:27
@plata
Copy link
Collaborator

plata commented Dec 23, 2018

Thanks for the explanation.

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.

None yet

2 participants