aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStuart Connolly <stuart02@gmail.com>2014-10-26 18:43:20 +0000
committerStuart Connolly <stuart02@gmail.com>2014-10-26 18:43:20 +0000
commit675271e802f513dfa781cbe6af5446df4c6803e1 (patch)
treee75b175b30bdd56a0995d15005a9dcf8102a123c
parent7128462d43cb9648f97e9d1a625a685f31d75bb3 (diff)
downloadsequelpro-675271e802f513dfa781cbe6af5446df4c6803e1.tar.gz
sequelpro-675271e802f513dfa781cbe6af5446df4c6803e1.tar.bz2
sequelpro-675271e802f513dfa781cbe6af5446df4c6803e1.zip
Fix error building on 10.8.
-rw-r--r--Source/SPGotoDatabaseController.h2
-rw-r--r--Source/SPGotoDatabaseController.m8
2 files changed, 6 insertions, 4 deletions
diff --git a/Source/SPGotoDatabaseController.h b/Source/SPGotoDatabaseController.h
index 08b0ea0e..05dfcbf1 100644
--- a/Source/SPGotoDatabaseController.h
+++ b/Source/SPGotoDatabaseController.h
@@ -46,7 +46,9 @@
NSMutableArray *unfilteredList;
NSMutableArray *filteredList;
+
BOOL isFiltered;
+ BOOL allowCustomNames;
}
/**
diff --git a/Source/SPGotoDatabaseController.m b/Source/SPGotoDatabaseController.m
index 8bf7505e..d9573ea4 100644
--- a/Source/SPGotoDatabaseController.m
+++ b/Source/SPGotoDatabaseController.m
@@ -175,7 +175,7 @@
if (match.location == NSNotFound) continue;
- //check for exact match?
+ // Check for exact match?
if (exactMatch && !*exactMatch) {
if (match.location == 0 && match.length == [db length]) {
*exactMatch = YES;
@@ -220,13 +220,13 @@
- (BOOL)control:(NSControl *)control textView:(NSTextView *)fieldEditor doCommandBySelector:(SEL)commandSelector
{
- //the ESC key will usually clear the search field. we want to close the dialog
+ // The ESC key will usually clear the search field. we want to close the dialog
if (commandSelector == @selector(cancelOperation:)) {
[cancelButton performClick:control];
return YES;
}
- //arrow down/up will usually go to start/end of the text field. we want to change the selected table row.
+ // Arrow down/up will usually go to start/end of the text field. we want to change the selected table row.
if (commandSelector == @selector(moveDown:)) {
[databaseListView selectRowIndexes:[NSIndexSet indexSetWithIndex:([databaseListView selectedRow]+1)] byExtendingSelection:NO];
return YES;
@@ -236,8 +236,8 @@
[databaseListView selectRowIndexes:[NSIndexSet indexSetWithIndex:([databaseListView selectedRow]-1)] byExtendingSelection:NO];
return YES;
}
- //forward return to OK button (enter will not be caught by search field)
+ // Forward return to OK button (enter will not be caught by search field)
if (commandSelector == @selector(insertNewline:)) {
[okButton performClick:control];
return YES;