mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-16 18:47:33 -05:00
Resolves issue with array out of bounds exception on shutdown while
removing tuners from the tuner model.
This commit is contained in:
@@ -85,9 +85,12 @@ public class TunerViewPanel extends JPanel
|
|||||||
if(!event.getValueIsAdjusting())
|
if(!event.getValueIsAdjusting())
|
||||||
{
|
{
|
||||||
int row = mTunerTable.getSelectedRow();
|
int row = mTunerTable.getSelectedRow();
|
||||||
int modelRow = mTunerTable.convertRowIndexToModel(row);
|
|
||||||
|
|
||||||
mTunerEditor.setItem(mTunerModel.getTuner(modelRow));
|
if(row >= 0)
|
||||||
|
{
|
||||||
|
int modelRow = mTunerTable.convertRowIndexToModel(row);
|
||||||
|
mTunerEditor.setItem(mTunerModel.getTuner(modelRow));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user