aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPUserManagerDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPUserManagerDelegate.m')
-rw-r--r--Source/SPUserManagerDelegate.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPUserManagerDelegate.m b/Source/SPUserManagerDelegate.m
index c1a96ba9..8fa2b980 100644
--- a/Source/SPUserManagerDelegate.m
+++ b/Source/SPUserManagerDelegate.m
@@ -124,7 +124,11 @@ static NSString *SPSchemaPrivilegesTabIdentifier = @"Schema Privileges";
BOOL retVal = YES;
if ([[treeController selectedObjects] count] == 0) return NO;
-
+
+ if (![treeController commitEditing]) {
+ return NO;
+ }
+
// Currently selected object in tree
id selectedObject = [[treeController selectedObjects] objectAtIndex:0];