[PATCH] ReadWritePart::saveAs()

Clarence Dang dang at kde.org
Wed Mar 3 08:44:29 GMT 2004


On Tue, 2 Mar 2004 10:58 pm, Andras Mantia wrote:
>  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.
>
I'm not sure that changing the behaviour of an API that's supposed to be BC is 
a good idea but at least for me it's great because I can now remove my 
KoDocument/KoMainWindow hacks from KOffice :)

Clarence





More information about the kde-core-devel mailing list