quickfix for IDEA-125710 (Wrong selection behavior in file history window)

This commit is contained in:
Bas Leijdekkers
2014-05-31 22:03:03 +02:00
parent 5318e0e7a1
commit c503439a32
@@ -406,14 +406,9 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton {
final TreeTableView treeView = myDualView.getTreeView();
final int lastRow = treeView.getRowCount() - 1;
if (lastRow >= 0) {
treeView.addRowSelectionInterval(lastRow, lastRow);
treeView.scrollRectToVisible(treeView.getCellRect(lastRow, 0, true));
}
}
final TableView flatView = myDualView.getFlatView();
if (flatView.getRowCount() > 0) {
flatView.addRowSelectionInterval(0, 0);
}
myInRefresh = false;
myTargetSelection = null;