Changeset 11140 for stable/HeuristicLab.Data.Views/3.3/Path Views
- Timestamp:
- 07/08/14 18:53:42 (10 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
/trunk/sources merged: 11034
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Data.Views/3.3 merged: 11034
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs
r9961 r11140 68 68 if (Content != null && Content.Exists()) { 69 69 fileSystemWatcher.Filter = Path.GetFileName(Content.Value); 70 fileSystemWatcher.Path = Path.GetDirectoryName(Content.Value); 70 var path = Path.GetDirectoryName(Content.Value); 71 if (string.IsNullOrEmpty(path)) path = Environment.CurrentDirectory; 72 fileSystemWatcher.Path = path; 71 73 } 72 74 fileSystemWatcher.EnableRaisingEvents = Content != null && File.Exists(Content.Value) && Visible;
Note: See TracChangeset
for help on using the changeset viewer.