work around not having a selected row while cancelling a download
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user