correctly enable get-info menu item

This commit is contained in:
pinkerton%netscape.com 2003-04-25 17:57:13 +00:00
Родитель eb030d87ea
Коммит 073f62a903
1 изменённых файлов: 3 добавлений и 5 удалений

Просмотреть файл

@ -1337,9 +1337,7 @@ static NSArray* sToolbarDefaults = nil;
- (BOOL)bookmarksAreVisible:(BOOL)inRequireSelection
{
// we should really identify the tab by identifier, not index.
BOOL bookmarksShowing = ([mSidebarDrawer state] == NSDrawerOpenState) &&
([mSidebarTabView tabViewItemAtIndex: 0] == [mSidebarTabView selectedTabViewItem]);
BOOL bookmarksShowing = [mContentView isBookmarkManagerVisible];
if (inRequireSelection)
bookmarksShowing &= ([mSidebarBookmarksDataSource haveSelectedRow]);
@ -2341,14 +2339,14 @@ static NSArray* sToolbarDefaults = nil;
- (void)toggleBookmarkManager:(id)sender
{
// deactivate any gecko view that might think it has focus
if ([self isResponderGeckoView:[[self window] firstResponder]]) {
if ([self isResponderGeckoView:[[self window] firstResponder]]) {
CHBrowserView* browserView = [mBrowserView getBrowserView];
if (browserView)
[browserView setActive:NO];
}
// swap out between content and bookmarks.
[mContentView toggleBookmarkManager:sender];
[mContentView toggleBookmarkManager:sender];
// if we're now showing the bm manager, force it to have focus,
// otherwise give focus back to gecko.