From adc334dfb1aa5e8f717320453800fe224d2b0784 Mon Sep 17 00:00:00 2001 From: kascade Date: Sat, 4 Aug 2007 11:53:00 +0000 Subject: [PATCH] updated logger profile save as action git-svn-id: http://svn.3splooges.com/romraider-arch/trunk@761 d2e2e1cd-ba16-0410-be16-b7c4453c7c2d --- .../ecu/ui/swing/menubar/action/SaveProfileAsAction.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/enginuity/logger/ecu/ui/swing/menubar/action/SaveProfileAsAction.java b/src/enginuity/logger/ecu/ui/swing/menubar/action/SaveProfileAsAction.java index c74f3f4c..6ead4385 100644 --- a/src/enginuity/logger/ecu/ui/swing/menubar/action/SaveProfileAsAction.java +++ b/src/enginuity/logger/ecu/ui/swing/menubar/action/SaveProfileAsAction.java @@ -32,7 +32,10 @@ public final class SaveProfileAsAction extends AbstractAction { if (fc.showSaveDialog(logger) == APPROVE_OPTION) { File selectedFile = fc.getSelectedFile(); if (!selectedFile.exists() || showConfirmDialog(logger, selectedFile.getName() + " already exists! Overwrite?") == OK_OPTION) { - saveProfileToFile(logger.getCurrentProfile(), selectedFile); + String profileFilePath = saveProfileToFile(logger.getCurrentProfile(), selectedFile); + logger.getSettings().setLoggerProfileFilePath(profileFilePath); + logger.reportMessageInTitleBar("Profile: " + profileFilePath); + logger.reportMessage("Profile succesfully saved as: " + profileFilePath); } } }