Changeset e4c0d80f5a02260fcbe099ed6c239ff75ca5a77e


Ignore:
Timestamp:
07/07/10 14:08:31 (3 years ago)
Author:
Matias De la Puente <mfpuente.ar@…>
Children:
a27bcd14d168f6074ad11d6dcce098f9871c1aba
Parents:
3cb25d2281f04260f84114d75115ad67d9233122
git-committer:
Matias De la Puente <mfpuente.ar@…> (07/07/10 14:08:31)
Message:

Projects: Fix bug when adding a file that already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libi4uc/i4ucprojectspresenter.vala

    re20be4a re4c0d80  
    126126                if (dialog_presenter.run (out file, out profiles)) 
    127127                { 
    128                         current_project.files.add (file); 
     128                        if (!(file in current_project.files)) 
     129                                current_project.files.add (file); 
    129130                        foreach (var profile in profiles) 
    130                                 current_project.profiles[profile].files.add (file); 
     131                                if (!(file in current_project.profiles[profile].files)) 
     132                                        current_project.profiles[profile].files.add (file); 
    131133                        current_project.save (); 
    132134                        _side_page_presenter.update_current_project (); 
Note: See TracChangeset for help on using the changeset viewer.