mirror of https://github.com/zlatinb/muwire
avoid exception
parent
b5aa3d5b50
commit
96098bb2d9
|
@ -681,6 +681,8 @@ class MainFrameModel {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (index == -1)
|
||||||
|
return // TODO: investigate how this is possible
|
||||||
if (uiSettings.clearUploads) {
|
if (uiSettings.clearUploads) {
|
||||||
uploads.remove(index)
|
uploads.remove(index)
|
||||||
view.removeUploadsTableRow(index)
|
view.removeUploadsTableRow(index)
|
||||||
|
|
Loading…
Reference in New Issue