Ignore:
Timestamp:
27/12/10 11:12:59 (2 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
210c106367dfc6fda302798f828c2d46a1043c1c
Parents:
6328b636fb1f7c08b71e6a53324f062a1265ec95
git-committer:
Matias De la Puente <mfpuente.ar@…> (27/12/10 11:12:59)
Message:

Projects: Allow to overwrite files that already exists in the project

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libi4uccore/projectslogic.vala

    r6328b63 r4d634c0  
    178178                                        if (response == DialogResponse.YES) 
    179179                                        { 
    180                                                 // The file already exists, ask to ovewrite the file 
     180                                                // The file already exists, ask to overwrite the file 
    181181                                                var dest_file = File.new_for_uri (current_project.get_file_uri (import_filename)); 
    182182                                                message = _("Do you want to overwrite the file <<%s>>?").printf (dest_file.get_path ()); 
     
    268268                                        } 
    269269                                         
    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 
    283271                                        foreach (var file in import_profile.files) 
    284272                                        { 
Note: See TracChangeset for help on using the changeset viewer.