fix show-in-library when table is sorted

pull/53/head
Zlatin Balevsky 2020-12-21 17:46:37 +00:00
parent 3569f45242
commit 2733fb6b1a
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 0 deletions

View File

@ -1620,6 +1620,8 @@ class MainFrameView {
int row = model.shared.indexOf(sf)
if (row < 0)
return
if (lastSharedSortEvent != null)
row = table.rowSorter.convertRowIndexToView(row)
table.setRowSelectionInterval(row, row)
table.scrollRectToVisible(new Rectangle(table.getCellRect(row, 0, true)))