mirror of https://github.com/zlatinb/muwire
fix show-in-library when table is sorted
parent
3569f45242
commit
2733fb6b1a
|
@ -1620,6 +1620,8 @@ class MainFrameView {
|
||||||
int row = model.shared.indexOf(sf)
|
int row = model.shared.indexOf(sf)
|
||||||
if (row < 0)
|
if (row < 0)
|
||||||
return
|
return
|
||||||
|
if (lastSharedSortEvent != null)
|
||||||
|
row = table.rowSorter.convertRowIndexToView(row)
|
||||||
table.setRowSelectionInterval(row, row)
|
table.setRowSelectionInterval(row, row)
|
||||||
|
|
||||||
table.scrollRectToVisible(new Rectangle(table.getCellRect(row, 0, true)))
|
table.scrollRectToVisible(new Rectangle(table.getCellRect(row, 0, true)))
|
||||||
|
|
Loading…
Reference in New Issue