Skip to content

Commit f353421

Browse files
committed
[bugfix] Show Save Dialog (not Open Dialog) when Saving a file
Closes #331
1 parent fd89de0 commit f353421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csv-validator-ui/src/main/scala/uk/gov/nationalarchives/csv/validator/ui/ScalaSwingHelpers.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ object ScalaSwingHelpers {
4141
* @param locateOver A component over which the FileChooser dialog should be located
4242
*/
4343
def chooseFile(fileChooser: FileChooser, result: File => Unit, locateOver: Component) {
44-
fileChooser.showOpenDialog(locateOver) match {
44+
fileChooser.showSaveDialog(locateOver) match {
4545
case Result.Approve =>
4646
result(fileChooser.selectedFile)
4747
case Result.Cancel =>

0 commit comments

Comments
 (0)