View | Details | Raw Unified | Return to bug 60961
Collapse All | Expand All

(-)a/src/components/org/apache/jmeter/visualizers/ViewResultsFullVisualizer.java (-1 / +4 lines)
Lines 139-144 implements ActionListener, TreeSelectionListener, Clearable, ItemListener { Link Here
139
    private static final int REFRESH_PERIOD = JMeterUtils.getPropDefault("jmeter.gui.refresh_period", 500);
139
    private static final int REFRESH_PERIOD = JMeterUtils.getPropDefault("jmeter.gui.refresh_period", 500);
140
140
141
    private ResultRenderer resultsRender = null;
141
    private ResultRenderer resultsRender = null;
142
    private Object resultsObject = null;
142
143
143
    private TreeSelectionEvent lastSelectionEvent;
144
    private TreeSelectionEvent lastSelectionEvent;
144
145
Lines 337-342 implements ActionListener, TreeSelectionListener, Clearable, ItemListener { Link Here
337
            dataChanged = true;
338
            dataChanged = true;
338
        }
339
        }
339
        resultsRender.clearData();
340
        resultsRender.clearData();
341
        resultsObject = null;
340
    }
342
    }
341
343
342
    /** {@inheritDoc} */
344
    /** {@inheritDoc} */
Lines 382-388 implements ActionListener, TreeSelectionListener, Clearable, ItemListener { Link Here
382
            node = (DefaultMutableTreeNode) jTree.getLastSelectedPathComponent();
384
            node = (DefaultMutableTreeNode) jTree.getLastSelectedPathComponent();
383
        }
385
        }
384
386
385
        if (node != null) {
387
        if (node != null && node.getUserObject() != resultsObject) {
388
            resultsObject = node.getUserObject();
386
            // to restore last tab used
389
            // to restore last tab used
387
            if (rightSide.getTabCount() > selectedTab) {
390
            if (rightSide.getTabCount() > selectedTab) {
388
                resultsRender.setLastSelectedTab(rightSide.getSelectedIndex());
391
                resultsRender.setLastSelectedTab(rightSide.getSelectedIndex());

Return to bug 60961