mirror of https://github.com/zlatinb/muwire
use the same sorted row selection logic in downloads table
parent
0eb5870e9b
commit
8d3ce7aa8e
|
@ -95,10 +95,11 @@ class MainFrameController {
|
||||||
}
|
}
|
||||||
|
|
||||||
private int selectedDownload() {
|
private int selectedDownload() {
|
||||||
def selected = builder.getVariable("downloads-table").getSelectedRow()
|
def downloadsTable = builder.getVariable("downloads-table")
|
||||||
|
def selected = downloadsTable.getSelectedRow()
|
||||||
def sortEvt = mvcGroup.view.lastDownloadSortEvent
|
def sortEvt = mvcGroup.view.lastDownloadSortEvent
|
||||||
if (sortEvt != null)
|
if (sortEvt != null)
|
||||||
selected = sortEvt.convertPreviousRowIndexToModel(selected)
|
selected = downloadsTable.rowSorter.convertRowIndexToModel(selected)
|
||||||
selected
|
selected
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue