mirror of https://github.com/zlatinb/muwire
more descriptive error when refreshing shared files table
parent
27b734bc40
commit
e5ad1f7ca6
|
@ -2143,7 +2143,13 @@ class MainFrameView {
|
||||||
|
|
||||||
void refreshSharedFilesTableRow(int row) {
|
void refreshSharedFilesTableRow(int row) {
|
||||||
JTable table = builder.getVariable("shared-files-table")
|
JTable table = builder.getVariable("shared-files-table")
|
||||||
|
try {
|
||||||
table.model.fireTableRowsUpdated(row, row)
|
table.model.fireTableRowsUpdated(row, row)
|
||||||
|
} catch (IndexOutOfBoundsException bad) {
|
||||||
|
int modelSize = table.model.size()
|
||||||
|
int sharedSize = model.shared.size()
|
||||||
|
throw new Exception("Index out of bounds: row=$row sharedSize=$sharedSize modelSize=$modelSize", bad)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void fullUpdateIfColumnSorted(String tableName, int column) {
|
void fullUpdateIfColumnSorted(String tableName, int column) {
|
||||||
|
|
Loading…
Reference in New Issue