aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-06 17:47:47 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-06 17:47:47 +0000
commit644befb3e7d6c3fcce85da8a54d6b89de4ae2bbf (patch)
tree47b8bee326c81f98754214115be8ef819aeb7b93 /Source
parent2c7eff725904c253efdb3412e9b6c27ab88decdb (diff)
downloadsequelpro-644befb3e7d6c3fcce85da8a54d6b89de4ae2bbf.tar.gz
sequelpro-644befb3e7d6c3fcce85da8a54d6b89de4ae2bbf.tar.bz2
sequelpro-644befb3e7d6c3fcce85da8a54d6b89de4ae2bbf.zip
• fixed: do not disable User Account if no table is selected
• fixed: if user cancelled "Add Database" reselect 'Choose Database Button' instead of displaying "Add Database"
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m11
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));
}