Ignore:
Timestamp:
Jun 25, 2010, 6:44:38 PM (12 years ago)
Author:
Paul Lelgemann
Message:

o P2PEditor: fix for local filename problem
+ KeySearcher: debug log entry for sent/received bytes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/P2PEditor/Distributed/DistributedJob.cs

    r1701 r1703  
    99    public class DistributedJob : INotifyPropertyChanged
    1010    {
    11         [NonSerialized] private String _localFilePath;
     11        [NonSerialized]
     12        private String localFilePath;
    1213
    1314        public DistributedJob()
     
    3233        public String LocalFilePath
    3334        {
    34             get { return _localFilePath; }
     35            get { return localFilePath; }
    3536            set
    3637            {
    37                 if (value == _localFilePath) return;
    38                 _localFilePath = value;
    39                 FileName = Path.GetFileName(_localFilePath);
     38                if (value == localFilePath) return;
     39                localFilePath = value;
     40                FileName = Path.GetFileName(localFilePath);
    4041                OnPropertyChanged("LocalFilePath");
    4142            }
     
    5859
    5960            // Avoid overwriting previous versions of this workspace or workspaces with common names by adding an integer prefix
    60             LocalFilePath = Path.Combine(workspacePath, JobOwner + "_" + FileName);
     61            var originalFileName = FileName;
     62            LocalFilePath = Path.Combine(workspacePath, JobOwner + "_" + originalFileName);
    6163            var counter = 0;
    6264            while (File.Exists(LocalFilePath))
    6365            {
    64                 LocalFilePath = Path.Combine(workspacePath, counter++ + "_" + JobOwner + "_" + FileName);
     66                LocalFilePath = Path.Combine(workspacePath, counter++ + "_" + JobOwner + "_" + originalFileName);
    6567            }
    6668
Note: See TracChangeset for help on using the changeset viewer.