Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@novell.com>2011-01-14 13:41:06 +0300
committerLluis Sanchez Gual <lluis@novell.com>2011-01-14 13:41:06 +0300
commitb685f67f51f1e9300a9883ef507709fb28a17848 (patch)
treebd3927cd5a2727c471bb3971c3a71ac604e34341
parentc50286add52535487899c7e3c2a5c4d34b079ba6 (diff)
Fixed some minor bugs in the property grid:
* Text cells don't accept empty values * CommitChanges doesn't really commit changes
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditor.cs2
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs4
2 files changed, 4 insertions, 2 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditor.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditor.cs
index de866f675d..e4d9711678 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditor.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/TextEditor.cs
@@ -156,8 +156,8 @@ namespace MonoDevelop.Components.PropertyGrid.PropertyEditors
}
set {
string val = session.Property.Converter.ConvertToString (session, value);
- initialText = entry.Text;
entry.Text = val ?? string.Empty;
+ initialText = entry.Text;
}
}
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs
index 9eb95f2ea6..9064eb1fd1 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid/PropertyGridTree.cs
@@ -105,7 +105,9 @@ namespace MonoDevelop.Components.PropertyGrid
public void CommitChanges ()
{
- tree.Selection.UnselectAll ();
+ TreePath[] sel = tree.Selection.GetSelectedRows ();
+ if (sel.Length > 0)
+ tree.SetCursor (sel[0], tree.Columns[1], false);
}
public void SaveStatus ()