aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-05-10 20:59:29 +0000
committerdrx777 <david.rekowski@gmx.de>2010-05-10 20:59:29 +0000
commit505d972f02d0d31dcab6e4a60bf87f5afb464049 (patch)
tree85cd676ff444d47de6461e0fd6cf0bb150bda5c0 /Source
parentb4ad0ec8dc00e8fb5a575d425e7979af8615705c (diff)
downloadsequelpro-505d972f02d0d31dcab6e4a60bf87f5afb464049.tar.gz
sequelpro-505d972f02d0d31dcab6e4a60bf87f5afb464049.tar.bz2
sequelpro-505d972f02d0d31dcab6e4a60bf87f5afb464049.zip
- Corrected reloading of list of databases and list of tables; formerly, only the db list was reloaded, keeping the list of tables from the previously selected database
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 49bde88b..3875c0a3 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -4164,8 +4164,7 @@
if ([dbActionCopy copyDatabaseFrom: [self database]
to: [databaseCopyNameField stringValue]
withContent: copyWithContent]) {
- [selectedDatabase release];
- selectedDatabase = [[NSString alloc] initWithString:[databaseCopyNameField stringValue]];
+ [self selectDatabase:[databaseCopyNameField stringValue] item:nil];
}
[dbActionCopy release];
[self setDatabases: self];
@@ -4182,8 +4181,7 @@
if ([dbActionRename renameDatabaseFrom: [self database]
to: [databaseRenameNameField stringValue]]) {
- [selectedDatabase release];
- selectedDatabase = [[NSString alloc] initWithString:[databaseRenameNameField stringValue]];
+ [self selectDatabase:[databaseRenameNameField stringValue] item:nil];
}
[dbActionRename release];
[self setDatabases: self];