aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m9
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index f58b9b29..850ee443 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -41,6 +41,8 @@
#import "SPQueryConsole.h"
#import "CMMCPConnection.h"
#import "CMMCPResult.h"
+#import "MainController.h"
+#import "SPPreferenceController.h"
//used for printing
#import "MGTemplateEngine.h"
@@ -409,7 +411,11 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
*/
- (IBAction)editFavorites:(id)sender
{
-
+ SPPreferenceController *prefsController = [[NSApp delegate] preferenceController];
+
+ [prefsController showWindow:self];
+ [prefsController displayFavoritePreferences:self];
+ [prefsController selectFavorites:[favoritesController selectedObjects]];
}
/**
@@ -481,6 +487,7 @@ NSString *TableDocumentFavoritesControllerSelectionIndexDidChange = @"TableDocum
[favoritesController addObject:newFavorite];
[favoritesController setSelectedObjects:[NSArray arrayWithObject:newFavorite]];
+ [[[NSApp delegate] preferenceController] updateDefaultFavoritePopup];
}
/**