mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
[vcs-log] Ignore move colun event if column wasn't changed
Simple mouse click is interpreted as dragging with 0 distance and spawns column moved event having old index == new index, which is handled redundantly GitOrigin-RevId: b852ba38c5d97c0d4d8862f695849d8fc4216368
This commit is contained in:
committed by
intellij-monorepo-bot
parent
42637822b8
commit
181d4b7e2d
@@ -1017,6 +1017,11 @@ public class VcsLogGraphTable extends TableWithProgress
|
||||
|
||||
@Override
|
||||
public void moveColumn(int columnIndex, int newIndex) {
|
||||
if (columnIndex == newIndex) {
|
||||
super.moveColumn(columnIndex, newIndex);
|
||||
return;
|
||||
}
|
||||
|
||||
VcsLogColumn<?> column = getVcsLogColumn(columnIndex);
|
||||
if (column == null ||
|
||||
column == Root.INSTANCE || getVcsLogColumn(newIndex) == Root.INSTANCE ||
|
||||
|
||||
Reference in New Issue
Block a user