mirror of https://github.com/zlatinb/muwire
work around not having a selected row while cancelling a download
parent
5ca0c8b00d
commit
165cd542ec
|
@ -269,6 +269,8 @@ class MainFrameView {
|
|||
selectionModel.setSelectionMode(ListSelectionModel.SINGLE_SELECTION)
|
||||
selectionModel.addListSelectionListener({
|
||||
int selectedRow = selectedDownloaderRow()
|
||||
if (selectedRow < 0)
|
||||
return
|
||||
def downloader = model.downloads[selectedRow]?.downloader
|
||||
if (downloader == null)
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue