diff options
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 76707b2d..368c8a65 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1131,8 +1131,15 @@ else if ([contextInfo isEqualToString:@"addDatabase"]) { if (returnCode == NSOKButton) { [self _addDatabase]; + } else { + // reset chooseDatabaseButton + if([[self database] length]) + [chooseDatabaseButton selectItemWithTitle:[self database]]; + else + [chooseDatabaseButton selectItemAtIndex:0]; } } + } /** @@ -3346,8 +3353,8 @@ if ([identifier isEqualToString:SPMainToolbarClearConsole]) { return ([[SPQueryController sharedQueryController] consoleMessageCount] > 0); } - - if (![identifier isEqualToString:SPMainToolbarCustomQuery]) { + + if (![identifier isEqualToString:SPMainToolbarCustomQuery] && ![identifier isEqualToString:SPMainToolbarUserManager]) { return (([tablesListInstance tableType] == SP_TABLETYPE_TABLE) || ([tablesListInstance tableType] == SP_TABLETYPE_VIEW)); } |