Skip to content
Browse files

close the help panel when the preferences window is closed

  • Loading branch information...
1 parent 91dab1b commit 60c663cc796da55f05008f730e8cda8b0a5c4d34 @skurfer committed Feb 20, 2012
View
1 Quicksilver/Code-App/QSPlugInsPrefPane.h
@@ -24,6 +24,7 @@
IBOutlet NSPanel *pluginInfoPanel;
}
@property NSString *plugInName;
+@property (readonly) NSPanel *pluginInfoPanel;
+ (void)getMorePlugIns;
- (int) viewMode;
- (void)setViewMode:(int)newViewMode;
View
2 Quicksilver/Code-App/QSPlugInsPrefPane.m
@@ -19,7 +19,7 @@ - (id)observedObject;
@implementation QSPlugInsPrefPane
-@synthesize plugInName;
+@synthesize plugInName, pluginInfoPanel;
- (id)preferencesSplitView {
return [sidebar superview];
View
6 Quicksilver/Code-App/QSPreferencesController.m
@@ -671,5 +671,9 @@ - (BOOL)splitView:(NSSplitView *)sender canCollapseSubview:(NSView *)subview { r
//- (float) splitView:(NSSplitView *)splitView constrainSplitPosition:(float)proposedPosition ofSubviewAt:(int)index {
//
//}
-
+- (void)windowWillClose:(NSNotification *)notification
+{
+ // close the plug-in help panel
+ [[[[modulesByID objectForKey:@"QSPlugInsPrefPane"] objectForKey:@"instance"] pluginInfoPanel] close];
+}
@end

0 comments on commit 60c663c

Please sign in to comment.
Something went wrong with that request. Please try again.