From f0268791f6cde3edf13e78f2c8904666b2066079 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Sun, 18 Oct 2009 08:19:05 +0000 Subject: [PATCH] Fixed and closed #384: when renaming a namespace, the selected theme is preserved. --- AssemblyVersion.cs | 4 ++-- WebApplication/AdminNamespaces.aspx.cs | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 23ce50b..e4c257d 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.1.402")] -[assembly: AssemblyFileVersion("3.0.1.402")] +[assembly: AssemblyVersion("3.0.1.403")] +[assembly: AssemblyFileVersion("3.0.1.403")] diff --git a/WebApplication/AdminNamespaces.aspx.cs b/WebApplication/AdminNamespaces.aspx.cs index e240f2c..6a2592f 100644 --- a/WebApplication/AdminNamespaces.aspx.cs +++ b/WebApplication/AdminNamespaces.aspx.cs @@ -415,7 +415,11 @@ namespace ScrewTurn.Wiki { Page.Validate("rename"); if(!Page.IsValid) return; - if(Pages.RenameNamespace(Pages.FindNamespace(txtCurrentNamespace.Value), txtNewName.Text)) { + NamespaceInfo nspace = Pages.FindNamespace(txtCurrentNamespace.Value); + string theme = Settings.GetTheme(nspace.Name); + + if(Pages.RenameNamespace(nspace, txtNewName.Text)) { + Settings.SetTheme(txtNewName.Text, theme); RefreshList(); lblRenameResult.CssClass = "resultok"; lblRenameResult.Text = Properties.Messages.NamespaceRenamed;