[Title] add overwrite check routine in Logview
authorhyunsik.noh <hyunsik.noh@samsung.com>
Mon, 5 Dec 2011 11:53:10 +0000 (20:53 +0900)
committerhyunsik.noh <hyunsik.noh@samsung.com>
Mon, 5 Dec 2011 11:53:10 +0000 (20:53 +0900)
[Type] Enhancement
[Module] common
[Priority] Minor
[Redmine]Bug #3729

com.samsung.tizen.common.connection/src/com/samsung/tizen/common/connection/log/LogPanel.java

index 17c0490..cdc6d21 100644 (file)
@@ -827,7 +827,7 @@ public class LogPanel extends Panel implements IDeviceChangeListener {
                File check;
                boolean again;
                do {
-                       again = true;
+                       again = false;
                        fileName = dlg.open();
                        if (fileName == null)
                                return false;
@@ -835,8 +835,8 @@ public class LogPanel extends Panel implements IDeviceChangeListener {
                        if( check.exists())
                        {
                                int ret = FileDialogUtils.getInstance().checkFileOverwrite(fileName);
-                               if (ret == IDialogConstants.OK_ID)
-                                       again = false;
+                               if (ret == IDialogConstants.CANCEL_ID)
+                                       again = true;
                        }
                } while (again);