News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Rename project file behaviour

Started by thomas, December 09, 2009, 02:24:33 PM

Previous topic - Next topic

thomas

Is it just me, or is overwriting without asking maybe not such a good behaviour for "rename project file"?

I've just inadvertedly renamed a project file to another file with the same name, and guess what happened :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Jenna

#1
Quote from: thomas on December 09, 2009, 02:24:33 PM
Is it just me, or is overwriting without asking maybe not such a good behaviour for "rename project file"?
How do you rename a project-file ?
Or do you mean rename a file belonging to a project ?

Nevertheless, that shuld of course never happen without asking.

On windows it's no problem to rename a file and overwrite an existing file with it, in linux simply nothing happens.
The linux behaviour is more secure, but just doing nothing (without any message) is always not what I expect to happen in such a case.

EDIT:
The different behaviour is caused by a different function-call on msw and linux.
On windows the parameter overwrite is set to true !!

If renaming does not work wxBell is called, that might be the cause,that I did not get any message, because I normally turned off all system-sounds.

Jenna

Should be fixed in trunk.
Now only files with the same name, but different cases are overwritten (on windows).


thomas

"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."