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 random jumps when moving cursor in TUI repository table (bsc#1177145) #536

Merged
merged 2 commits into from
Oct 23, 2020

Conversation

mvidner
Copy link
Member

@mvidner mvidner commented Oct 8, 2020

In ncurses, ChangeWidget(:table, :CurrentItem, ...) will be wrong for sorted tables (which is the default now).
It is related to the ChangeWidget(:table, Cell(.., ..), ...) bug, bsc#1165388 (see libyui/libyui-ncurses#100)

This is a workaround: removing the unnecessary ChangeWidget.

I tested that it works in ncurses and qt. It has been validated by the reporter.

…145)

In ncurses, ChangeWidget(:table, :CurrentItem, ...) will be wrong for sorted
tables (which is the default now).
It is related to the ChangeWidget(:table, Cell(.., ..), ...) bug, bsc#1165388

This is a workaround: removing the unnecessary ChangeWidget.
Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

What about GUI?

fillCurrentRepoInfo
end
current = -1 if current.nil?
fillCurrentRepoInfo if current >= 0
Copy link
Member

Choose a reason for hiding this comment

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

How does this change affect GUI (Qt)? Does it work properly or do we need if UI.TextMode condition?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point. I've checked, it works OK in Qt.

@mvidner mvidner merged commit 5b40f3f into SLE-15-SP2 Oct 23, 2020
@mvidner mvidner deleted the table-jumping-cursor branch October 23, 2020 15:35
@mvidner
Copy link
Member Author

mvidner commented Jan 20, 2021

@joseivanlopez for master this is not necessary:
master: the bug got fixed sometime around adding tree structure to table rows. yast/yast-ruby-bindings#260 enables the test which now passes

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