From 001ee0bce531737c3986030f72e3e1aeabeff33e Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Tue, 14 Apr 2015 14:47:33 +0300 Subject: [PATCH] [vcs] IDEA-117394 set empty text to "loading..." only if in refresh --- .../intellij/openapi/vcs/history/FileHistoryPanelImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java index dd8c403d9d6e..bdf630fc1075 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java @@ -578,9 +578,12 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { if ((virtualFile == null || !virtualFile.isValid()) && !myFilePath.getIOFile().exists()) { setEmptyText("File " + myFilePath.getName() + " not found"); } - else { + else if (myInRefresh) { setEmptyText(CommonBundle.getLoadingTreeNodeText()); } + else { + setEmptyText(StatusText.DEFAULT_EMPTY_TEXT); + } } private void setEmptyText(@NotNull String emptyText) {