You are here: PSPad forum > Bug report / Hlášení chyb > behavior cancel button in file already exists dialog causes loss of data

behavior cancel button in file already exists dialog causes loss of data

#1 behavior cancel button in file already exists dialog causes loss of data

Posted by: tripleseven | Date: 2015-05-23 18:16 | IP: IP Logged

The behavior of the "cancel" button in the "File already exists" dialog differs from that of other Windows applications. Because it's behavior is unexpected it will result in loss of data.

Steps to reproduce (version used: 4.5.9 (2600)):
- start PSPad
- the program starts with a new file called New1.txt
- make some changes to New1.txt
- choose "save as" and save the file as "first.txt" on the desktop
- create a new text file (which will be called New2.txt)
- make some changes to New2.txt
- close PSPad
- PSPad shows the "Save changes made to file?" dialog for New2.txt
- click "Yes"
- select the "first.txt" file on the desktop and click on "Save"
- PSPad shows the "File "first.txt" already exists. Are you sure you want to overwrite it?" dialog
- click "Cancel"
- at this point the application simply closes and all changes to New2.txt are lost without any warning! (similar behavior happens when closing the New2.txt window).

Proposed change: after clicking "Cancel" in the "File already exists" dialog the application should return to the Save file dialog and allow me to choose a different file name.

Options: Reply | Quote | Up ^


#2 Re: behavior cancel button in file already exists dialog causes loss of data

Posted by: pspad | Date: 2015-05-23 19:18 | IP: IP Logged

Thank you for your detail description. You are right.
I will make a change of the close process behavior. Cancel button will cancel close process.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR