* UI: Fixed wrong game selection by double click on tables list (#5239);

This commit is contained in:
Oleg Agafonov 2018-10-13 01:11:26 +04:00
parent 9a4fb4adb1
commit 2bd5d0ddf6

View file

@ -326,7 +326,7 @@ public class TablesPanel extends javax.swing.JPanel {
table.addMouseListener(new MouseAdapter() { table.addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
int row = table.rowAtPoint(e.getPoint()); int row = table.convertRowIndexToModel(table.getSelectedRow());
if (e.getClickCount() == 2 && row != -1) { if (e.getClickCount() == 2 && row != -1) {
action.actionPerformed(new ActionEvent(e.getSource(), e.getID(), "" + row)); action.actionPerformed(new ActionEvent(e.getSource(), e.getID(), "" + row));
} }