Leaving history overlay active after navigating using the back/forwards buttons.

svn path=/trunk/netsurf/; revision=11495
This commit is contained in:
Sven Weidauer 2011-01-26 13:42:52 +00:00
parent da01624374
commit 56fb20de83
2 changed files with 5 additions and 1 deletions

View File

@ -34,6 +34,7 @@ struct browser_window;
NSImage *favicon;
BOOL canGoBack;
BOOL canGoForward;
BOOL navigatedUsingBackForwards;
}
@property (readwrite, assign, nonatomic) struct browser_window *browser;

View File

@ -96,6 +96,7 @@
- (IBAction) goBack: (id) sender;
{
if (browser && history_back_available( browser->history )) {
navigatedUsingBackForwards = YES;
history_back(browser, browser->history);
[self updateBackForward];
}
@ -104,6 +105,7 @@
- (IBAction) goForward: (id) sender;
{
if (browser && history_forward_available( browser->history )) {
navigatedUsingBackForwards = YES;
history_forward(browser, browser->history);
[self updateBackForward];
}
@ -164,7 +166,8 @@ static inline bool compare_float( float a, float b )
- (void) contentUpdated;
{
[browserView setHistoryVisible: NO];
if (!navigatedUsingBackForwards) [browserView setHistoryVisible: NO];
navigatedUsingBackForwards = NO;
}
@end