GNOME Bugzilla – Bug 329345
'Save to disk' overwrites existing files without prompting
Last modified: 2013-09-13 00:49:20 UTC
Please describe the problem: The calendar 'Save to disk' overwrites existing files without prompting. Steps to reproduce: 1. Right click a calendar in the rigth pane and 'Save to disk' 2. type a file name to save to 3. Save Actual results: If an identicaly named file exists, it is being silently replaced. Expected results: Warn and prompt to replace or cancel. Does this happen every time? Yes Other information:
confirming. since one can lose data, raising priority. i'm targetting this to 2.5. also note that we are under UI freeze. we should reuse the string "A file by that name already exists.\n" "Overwrite it?" from #: ../e-util/e-dialog-utils.c, so at least we would not need to inform the translators.
shortening the summary a bit so it can be read easier in the search results
It was fixed already.
Reopening as this has not been fixed. I can still reproduce the bug in 2.6 .
Victor, do you see a confirmation dialog atleast? I see it in calendar. May be im looking at the wrong place.
Sri, maybe the initial description wasn't detailed enough - I'll try again. Evo is 2.6.1 . 1. Open the Calendar component (Ctrl+3) 2. Choose "Save to disk" from the context menu of a calendar in the left pane. By default I see one named "Personal". 3. Repeat step 2. No confirmation is given. P.S. I just noticed the difference from my original report - s/right/left/
right. Now I get it. Till now i was trying with the attachment of an event.
Created attachment 64068 [details] [review] Proposed patch
If you save with other formats it will ask for overwrite. It doesnt only if u save as ical. This fixes it.
Fixed to HEAD.
Why not to the 2.6.x branch ?
http://cvs.gnome.org/viewcvs/evolution/plugins/save-calendar/ical-format.c?r1=1.4&r2=1.5 reopening. srini: should this also go into the stable branch?
Fixed to STABLE also.