mirror of https://github.com/zlatinb/muwire
fix download table selection when sorted
parent
a1fe3c01b9
commit
9a0b3bb9d6
|
@ -717,9 +717,12 @@ class MainFrameView {
|
|||
}
|
||||
|
||||
int selectedDownloaderRow() {
|
||||
int selected = builder.getVariable("downloads-table").getSelectedRow()
|
||||
def downloadsTable = builder.getVariable("downloads-table")
|
||||
int selected = downloadsTable.getSelectedRow()
|
||||
if (selected < 0)
|
||||
return selected
|
||||
if (lastDownloadSortEvent != null)
|
||||
selected = lastDownloadSortEvent.convertPreviousRowIndexToModel(selected)
|
||||
selected = downloadsTable.rowSorter.convertRowIndexToModel(selected)
|
||||
selected
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue