diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-11-23 15:18:01 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-11-23 15:18:01 +0000 |
commit | 7d3ddb92111a1f43ecbff14bed6d4a4187257bdd (patch) | |
tree | c6eaa21da5d54fd385836202f21062edf8cd95d7 /Source/SPBundleEditorController.m | |
parent | 7129ce986b4f33d1130a44b67fb47093b3af20a6 (diff) | |
download | sequelpro-7d3ddb92111a1f43ecbff14bed6d4a4187257bdd.tar.gz sequelpro-7d3ddb92111a1f43ecbff14bed6d4a4187257bdd.tar.bz2 sequelpro-7d3ddb92111a1f43ecbff14bed6d4a4187257bdd.zip |
• Bundle Editor - fixed duplicate issue for renaming
Diffstat (limited to 'Source/SPBundleEditorController.m')
-rw-r--r-- | Source/SPBundleEditorController.m | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPBundleEditorController.m b/Source/SPBundleEditorController.m index bb628c55..80707d4d 100644 --- a/Source/SPBundleEditorController.m +++ b/Source/SPBundleEditorController.m @@ -316,6 +316,7 @@ { NSMutableDictionary *bundle; NSUInteger insertIndex; + BOOL wasDuplicated = NO; // Store pending changes in Query [[self window] makeFirstResponder:nameTextField]; @@ -362,7 +363,7 @@ return; } - + wasDuplicated = YES; [bundle setObject:newFileName forKey:@"bundleName"]; } @@ -390,7 +391,7 @@ [removeButton setEnabled:([commandsTableView numberOfSelectedRows] > 0)]; [[self window] makeFirstResponder:commandsTableView]; [self scopeButtonChanged:nil]; - if([commandsTableView numberOfSelectedRows] > 0) + if(!wasDuplicated && [commandsTableView numberOfSelectedRows] > 0) [commandsTableView editColumn:0 row:insertIndex withEvent:nil select:YES]; } |