From cd0ab624a30f68da7781d0d75663a3218ec1d021 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Date: Wed, 22 Jul 2009 00:29:33 +0000 Subject: * MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs: Save preferences after changing author info. * MonoDevelop.Ide.Gui/RootWorkspace.cs: Set the preferences for the root workspace item after loading. svn path=/trunk/monodevelop/; revision=138348 --- .../MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels') diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs index d3813e4401..e28050f0df 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.OptionPanels/AuthorInformationPanel.cs @@ -45,8 +45,14 @@ namespace MonoDevelop.Ide.Gui.OptionPanels public override void ApplyChanges () { - if (solution != null) - solution.UserProperties.SetValue ("AuthorInfo", widget.Get ()); + if (solution != null) { + AuthorInformation ainfo = widget.Get (); + if (ainfo != null) + solution.UserProperties.SetValue ("AuthorInfo", ainfo); + else + solution.UserProperties.RemoveValue ("AuthorInfo"); + IdeApp.Workspace.SavePreferences (); + } } public override void Initialize (MonoDevelop.Core.Gui.Dialogs.OptionsDialog dialog, object dataObject) -- cgit v1.2.3