From 7c1c253c863f09c2edb58e508c79c47ec00db3e1 Mon Sep 17 00:00:00 2001 From: Allan Odgaard Date: Mon, 11 Feb 2013 14:21:24 +0100 Subject: [PATCH] =?UTF-8?q?Make=20=E2=80=9CGo=20to=20Favorites=E2=80=9D=20?= =?UTF-8?q?a=20toggle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frameworks/OakFileBrowser/src/OakFileBrowser.mm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Frameworks/OakFileBrowser/src/OakFileBrowser.mm b/Frameworks/OakFileBrowser/src/OakFileBrowser.mm index e2a446fa..6777ad47 100644 --- a/Frameworks/OakFileBrowser/src/OakFileBrowser.mm +++ b/Frameworks/OakFileBrowser/src/OakFileBrowser.mm @@ -984,7 +984,13 @@ static NSMutableSet* SymmetricDifference (NSMutableSet* aSet, NSMutableSet* anot - (IBAction)goToComputer:(id)sender { [self goToURL:kURLLocationComputer]; } - (IBAction)goToHome:(id)sender { [self goToURL:kURLLocationHome]; } - (IBAction)goToDesktop:(id)sender { [self goToURL:kURLLocationDesktop]; } -- (IBAction)goToFavorites:(id)sender { [self goToURL:kURLLocationFavorites]; } + +- (IBAction)goToFavorites:(id)sender +{ + if([_url isEqualTo:kURLLocationFavorites] && self.canGoBack) + [self goBack:sender]; + else [self goToURL:kURLLocationFavorites]; +} - (IBAction)goToSCMDataSource:(id)sender {