[Monodevelop-patches-list] r2294 - in trunk/MonoDevelop/Core/src/MonoDevelop.Base: . Gui/Pads/FileScout
Christian Hergert <chris@mosaix.net>
chergert at mono-cvs.ximian.com
Fri Mar 4 20:30:56 EST 2005
Author: chergert
Date: 2005-03-04 20:30:56 -0500 (Fri, 04 Mar 2005)
New Revision: 2294
Modified:
trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs
Log:
Gui/Pads/FileScout/FileScout.cs: Fix race condition on adding files to
the pad.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-03-04 20:25:51 UTC (rev 2293)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/ChangeLog 2005-03-05 01:30:56 UTC (rev 2294)
@@ -1,3 +1,8 @@
+2005-03-04 Christian Hergert <christian.hergert at gmail.com>
+
+ * Gui/Pads/FileScout/FileScout.cs: Fix race condition when adding files
+ to the pad.
+
2005-02-26 Poul Andersen <pba at mailme.dk>
* Services/MessageService.cs: Added ShowMessage(string message, Gtk.Window parent )
to ensure modal messagebox as window on top.
Modified: trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs
===================================================================
--- trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs 2005-03-04 20:25:51 UTC (rev 2293)
+++ trunk/MonoDevelop/Core/src/MonoDevelop.Base/Gui/Pads/FileScout/FileScout.cs 2005-03-05 01:30:56 UTC (rev 2294)
@@ -68,19 +68,21 @@
foreach (string f in fb.Files)
{
- if (!(System.IO.Path.GetFileName (f)).StartsWith ("."))
- {
- FileListItem it = new FileListItem (f);
- filelister.ItemAdded (it);
- }
- else
- {
- if (!ignoreHidden)
+ if (System.IO.File.Exists(f)) {
+ if (!(System.IO.Path.GetFileName (f)).StartsWith ("."))
{
FileListItem it = new FileListItem (f);
filelister.ItemAdded (it);
-
}
+ else
+ {
+ if (!ignoreHidden)
+ {
+ FileListItem it = new FileListItem (f);
+ filelister.ItemAdded (it);
+
+ }
+ }
}
}
}
More information about the Monodevelop-patches-list
mailing list