[PATCH] ReadWritePart::saveAs()

Andras Mantia amantia at kde.org
Tue Mar 2 11:58:45 GMT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

 The following patch restores the old URL of the part if the saving with 
saveAs failed. I think this is the desired behavior, otherwise you can see 
the following:
1. open a file with a part (let's say an editor part)
2.  try to save as in a place where you cannot
3. saving fails, but the internal URL point to the newly selected place
4. subsequent saves (not save as!) will try to save to the newly selected 
place and saving fails.

With this change, a new save will simply save the document to the place from 
where it was opened.

If accepted, I may even backport to BRANCH. 

Andras

- -- 
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFARHb2TQdfac6L/08RAi8aAKCQNc3p3BwMetBwi4gDEUNEHBpdpwCggF9i
A6yXHy2RBPmIwBB5pDgNw6s=
=tQmC
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: saveas.diff
Type: text/x-diff
Size: 849 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20040302/3d830599/attachment.diff>


More information about the kde-core-devel mailing list