aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-gwt/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sonar-core-gwt/src')
-rw-r--r--plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
index 137ad9f37eb..71f43a8d315 100644
--- a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
+++ b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
@@ -65,6 +65,8 @@ public class ViolationsViewer extends Page {
mainPanel.setWidth("100%");
mainPanel.setStyleName("gwt-Violations");
+ sourcePanel = null; // reload sources when selecting a new file
+
header = new Grid(1, 5);
header.setWidth("100%");
header.setStylePrimaryName("gwt-ViewerHeader");