[Monodevelop-patches-list] r1193 - in trunk/MonoDevelop: . src/Main/Base/Commands
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Mar 19 11:53:39 EST 2004
Author: illan
Date: 2004-03-19 11:53:39 -0500 (Fri, 19 Mar 2004)
New Revision: 1193
Modified:
trunk/MonoDevelop/ChangeLog
trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
Log:
Modified: trunk/MonoDevelop/ChangeLog
===================================================================
--- trunk/MonoDevelop/ChangeLog 2004-03-19 03:11:55 UTC (rev 1192)
+++ trunk/MonoDevelop/ChangeLog 2004-03-19 16:53:39 UTC (rev 1193)
@@ -1,3 +1,7 @@
+2004-03-19 Iñigo Illán <kodeport AT terra.es>
+ * src/Main/Base/Commands/FileCommands.cs:
+ ask if you want to really delete recent files/projects list.
+
2004-03-18 John Luke <jluke at cfl.rr.com>
* src/Main/Base/Gui/Pads/HelpBrowser/HelpViewer.cs:
Modified: trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs 2004-03-19 03:11:55 UTC (rev 1192)
+++ trunk/MonoDevelop/src/Main/Base/Commands/FileCommands.cs 2004-03-19 16:53:39 UTC (rev 1193)
@@ -408,8 +408,12 @@
{
try {
IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
+ IMessageService messageService = (IMessageService) MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IMessageService));
- fileService.RecentOpen.ClearRecentFiles();
+ if (fileService.RecentOpen.RecentFile != null && fileService.RecentOpen.RecentFile.Count > 0 && messageService.AskQuestion("Are you sure you want to clear recent files list?", "Clear recent files"))
+ {
+ fileService.RecentOpen.ClearRecentFiles();
+ }
} catch {}
}
}
@@ -420,8 +424,12 @@
{
try {
IFileService fileService = (IFileService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IFileService));
+ IMessageService messageService = (IMessageService) MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(IMessageService));
- fileService.RecentOpen.ClearRecentProjects();
+ if (fileService.RecentOpen.RecentProject != null && fileService.RecentOpen.RecentProject.Count > 0 && messageService.AskQuestion("Are you sure you want to clear recent projects list?", "Clear recent projects"))
+ {
+ fileService.RecentOpen.ClearRecentProjects();
+ }
} catch {}
}
}
More information about the Monodevelop-patches-list
mailing list