Author Topic: Rename project file behaviour  (Read 15937 times)

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Rename project file behaviour
« 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"?

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."

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Rename project file behaviour
« Reply #1 on: December 09, 2009, 02:52:38 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.
« Last Edit: December 09, 2009, 02:56:41 pm by jens »

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: Rename project file behaviour
« Reply #2 on: December 09, 2009, 03:34:23 pm »
Should be fixed in trunk.
Now only files with the same name, but different cases are overwritten (on windows).


Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Rename project file behaviour
« Reply #3 on: December 10, 2009, 01:36:27 pm »
Thank you, Jens :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."