diff options
author | stuconnolly <stuart02@gmail.com> | 2009-12-18 20:19:03 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2009-12-18 20:19:03 +0000 |
commit | 9ed7bc2eaa45f6c06477d37ccf206575e06f2187 (patch) | |
tree | 60cb6dc91a5b6b29f116f29103a3266f7e3f3c7a /Source/CustomQuery.m | |
parent | e895f8dcba0784e2fee9ba855ee0de12e8deaefb (diff) | |
download | sequelpro-9ed7bc2eaa45f6c06477d37ccf206575e06f2187.tar.gz sequelpro-9ed7bc2eaa45f6c06477d37ccf206575e06f2187.tar.bz2 sequelpro-9ed7bc2eaa45f6c06477d37ccf206575e06f2187.zip |
Random source tidy up changes.
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 0982e16f..4805ea45 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1219,7 +1219,6 @@ // Populate query favorites [self queryFavoritesHaveBeenUpdated:nil]; - // Disable runSelectionMenuItem in the gear menu [runSelectionMenuItem setEnabled:NO]; @@ -2613,15 +2612,14 @@ * Called by the query favorites manager whenever the query favorites have been updated. */ - (void)queryFavoritesHaveBeenUpdated:(id)manager -{ - +{ NSMenuItem *headerMenuItem; NSMenu *menu = [queryFavoritesButton menu]; // Remove all favorites beginning from the end while([queryFavoritesButton numberOfItems] > 7) [queryFavoritesButton removeItemAtIndex:[queryFavoritesButton numberOfItems]-1]; - + // Build document-based list headerMenuItem = [[NSMenuItem alloc] initWithTitle: [[[[tableDocumentInstance fileURL] absoluteString] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding] lastPathComponent] @@ -2655,9 +2653,6 @@ [menu addItem:item]; [item release]; } - - // [queryFavoritesSearchField setStringValue:@""]; - } #pragma mark - @@ -2789,7 +2784,6 @@ */ - (BOOL)validateMenuItem:(NSMenuItem *)menuItem { - // Control "Save ... to Favorites" if ( [menuItem tag] == SP_SAVE_SELECTION_FAVORTITE_MENUITEM_TAG ) { if ([[textView string] length] < 1) return NO; @@ -2812,10 +2806,8 @@ } return YES; - } - #pragma mark - - (id)init |