Skip to content

Commit

Permalink
fix double-click action for showSeparateAction
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmipt committed Jan 5, 2024
1 parent 59ae389 commit 7d118d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/studio/ui/QGrid.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public int getRowCount() {
private final JPopupMenu popupMenu = new JPopupMenu();
private final UserAction copyExcelFormatAction;
private final UserAction copyHtmlFormatAction;
private final UserAction showSeparateAction;
private final TableUserAction showSeparateAction;

private long doubleClickTimeout;

Expand Down Expand Up @@ -246,6 +246,7 @@ private void copy(int row, int col) {
formatContextForCell.setShowType(b instanceof K.KBaseVector);
Util.copyTextToClipboard(b.toString(formatContextForCell));
} else {
showSeparateAction.setLocation(row, col);
showSeparateAction.actionPerformed(null);
}
}
Expand Down

0 comments on commit 7d118d2

Please sign in to comment.