mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* UI: Fixed wrong game selection by double click on tables list (#5239);
This commit is contained in:
parent
9a4fb4adb1
commit
2bd5d0ddf6
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
table.addMouseListener(new MouseAdapter() {
|
||||
@Override
|
||||
public void mouseClicked(MouseEvent e) {
|
||||
int row = table.rowAtPoint(e.getPoint());
|
||||
int row = table.convertRowIndexToModel(table.getSelectedRow());
|
||||
if (e.getClickCount() == 2 && row != -1) {
|
||||
action.actionPerformed(new ActionEvent(e.getSource(), e.getID(), "" + row));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue