- Timestamp:
- 27/12/10 11:12:59 (2 years ago)
- Children:
- 210c106367dfc6fda302798f828c2d46a1043c1c
- Parents:
- 6328b636fb1f7c08b71e6a53324f062a1265ec95
- git-committer:
- Matias De la Puente <mfpuente.ar@…> (27/12/10 11:12:59)
- File:
-
- 1 edited
-
libi4uccore/projectslogic.vala (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libi4uccore/projectslogic.vala
r6328b63 r4d634c0 178 178 if (response == DialogResponse.YES) 179 179 { 180 // The file already exists, ask to ove write the file180 // The file already exists, ask to overwrite the file 181 181 var dest_file = File.new_for_uri (current_project.get_file_uri (import_filename)); 182 182 message = _("Do you want to overwrite the file <<%s>>?").printf (dest_file.get_path ()); … … 268 268 } 269 269 270 // If some of the files are already in the project, don't copy the files 271 var file_in_project = false; 272 foreach (var file in import_profile.files) 273 if (file in current_project.files) 274 file_in_project = true; 275 if (file_in_project) 276 { 277 _view.show_error_message (_("One of the files to copy already exists in the project")); 278 dialog_view.close_dialog (); 279 return; 280 } 281 282 // If some of the files are in the project's folder (NOT included in the project), ask to ovewrite the file 270 // If some of the files are in the project's folder, ask to overwrite the file 283 271 foreach (var file in import_profile.files) 284 272 {
Note: See TracChangeset
for help on using the changeset viewer.

