aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authordrx777 <david.rekowski@gmx.de>2010-04-29 18:51:21 +0000
committerdrx777 <david.rekowski@gmx.de>2010-04-29 18:51:21 +0000
commit521d1b18c673f23b0123d2cf908c5c1ea62fb0af (patch)
tree6a7c4de80154f157abc533f8a79a9164fcfd2119 /Source
parent6f6a32030c374acc5afd253bc3a8f6488d0b9433 (diff)
downloadsequelpro-521d1b18c673f23b0123d2cf908c5c1ea62fb0af.tar.gz
sequelpro-521d1b18c673f23b0123d2cf908c5c1ea62fb0af.tar.bz2
sequelpro-521d1b18c673f23b0123d2cf908c5c1ea62fb0af.zip
Disables copy/rename confirmation buttons in copy/rename sheet if no name is provided
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index ea071365..ad72d2df 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1047,6 +1047,8 @@
*
* if contextInfo == removeDatabase -> Remove the selected database
* if contextInfo == addDatabase -> Add a new database
+ * if contextInfo == copyDatabase -> Duplicate the selected database
+ * if contextInfo == renameDatabase -> Rename the selected database
*/
- (void)sheetDidEnd:(id)sheet returnCode:(NSInteger)returnCode contextInfo:(NSString *)contextInfo
{
@@ -3936,6 +3938,12 @@
if (object == databaseNameField) {
[addDatabaseButton setEnabled:([[databaseNameField stringValue] length] > 0)];
}
+ else if (object == databaseCopyNameField) {
+ [copyDatabaseButton setEnabled:([[databaseCopyNameField stringValue] length] > 0)];
+ }
+ else if (object == databaseRenameNameField) {
+ [renameDatabaseButton setEnabled:([[databaseRenameNameField stringValue] length] > 0)];
+ }
else if (object == saveConnectionEncryptString) {
[saveConnectionEncryptString setStringValue:[saveConnectionEncryptString stringValue]];
}