Bug 166352 - Changing a file and then Saving As behaves confusing and wrong, leading to data loss
Summary: Changing a file and then Saving As behaves confusing and wrong, leading to da...
Status: RESOLVED DUPLICATE of bug 160258
Alias: None
Product: kile
Classification: Applications
Component: user interface (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-12 07:56 UTC by Luca Ingianni
Modified: 2008-07-13 12:53 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luca Ingianni 2008-07-12 07:56:11 UTC
Version:            (using 3.5.9, Kubuntu (hardy) 4:3.5.9-0ubuntu7.1)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.24-19-generic

I tend to reuse documents, simply replacing parts certain parts with others. I then want to save this new document under a new name. Thus, I choose "Save as".

Observed behaviour:
A message window with the following content opens:

The document "<name of my _old_ document>" has been modified.
Do You want to save your changes or discard them?
Save/Discard/Cancel

Since I don't wish to overwrite my old document, I choose "Discard".
Result: the new file is created, containing the old document. On disk as well as in the editor my new document is lost.
Should I choose "Save", both the old and the new document contain the new text. The old text is lost.

Expected behaviour:
The new file is created without warnings and filled with the appropriate data.
The old document is left untouched.
No data is ever lost.

Best Regards,
Luca
Comment 1 Thomas Braun 2008-07-13 12:53:06 UTC

*** This bug has been marked as a duplicate of 160258 ***