[PATCH] ReadWritePart::saveAs()

Simon Hausmann hausmann at kde.org
Tue Mar 2 12:03:55 GMT 2004


On Tuesday 02 March 2004 12:58, Andras Mantia wrote:
> 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.

Good catch! Please commit.

(an idea on top would be to restore the window caption as well, if saving 
failed)

Simon




More information about the kde-core-devel mailing list