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

(-)src/core/org/apache/jmeter/gui/action/Load.java (+1 lines)
Lines 152-157 Link Here
152
            } finally {
152
            } finally {
153
                JOrphanUtils.closeQuietly(reader);
153
                JOrphanUtils.closeQuietly(reader);
154
            }
154
            }
155
            FileDialoger.setLastJFCDirectory(f.getParentFile().getAbsolutePath());
155
            guiPackage.updateCurrentGui();
156
            guiPackage.updateCurrentGui();
156
            guiPackage.getMainFrame().repaint();
157
            guiPackage.getMainFrame().repaint();
157
        }
158
        }
(-)src/core/org/apache/jmeter/gui/util/FileDialoger.java (-1 / +9 lines)
Lines 101-108 Link Here
101
            jfc.setAcceptAllFileFilterUsed(true);
101
            jfc.setAcceptAllFileFilterUsed(true);
102
            jfc.setFileFilter(currentFilter);
102
            jfc.setFileFilter(currentFilter);
103
        }
103
        }
104
        jfc.setCurrentDirectory(new File(lastJFCDirectory));
104
        int retVal = jfc.showOpenDialog(GuiPackage.getInstance().getMainFrame());
105
        int retVal = jfc.showOpenDialog(GuiPackage.getInstance().getMainFrame());
105
        lastJFCDirectory = jfc.getCurrentDirectory().getAbsolutePath();
106
106
107
        if (retVal == JFileChooser.APPROVE_OPTION) {
107
        if (retVal == JFileChooser.APPROVE_OPTION) {
108
            return jfc;
108
            return jfc;
Lines 173-177 Link Here
173
            return jfc;
173
            return jfc;
174
        }
174
        }
175
        return null;
175
        return null;
176
    }
177
178
    public static String getLastJFCDirectory() {
179
        return lastJFCDirectory;
180
    }
181
182
    public static void setLastJFCDirectory(String lastJFCDirectory) {
183
        FileDialoger.lastJFCDirectory = lastJFCDirectory;
176
    }
184
    }
177
}
185
}

Return to bug 52707