Skip to content

Commit

Permalink
Merge pull request ViennaRSS#1006 from barijaona/issue-1005
Browse files Browse the repository at this point in the history
Fix tests on keys in KVO patterns
  • Loading branch information
barijaona committed Sep 14, 2017
2 parents ca7d7c6 + 245caf7 commit 572693c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ArticleController.m
Expand Up @@ -1096,7 +1096,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
change:(NSDictionary<NSKeyValueChangeKey,id> *)change
context:(void *)context {
if (keyPath == MAPref_FilterMode) {
if ([keyPath isEqualToString:MAPref_FilterMode]) {
// Update the list of articles when the user changes the filter.
@synchronized(mainArticleView) {
[mainArticleView refreshFolder:MA_Refresh_ReapplyFilter];
Expand Down
2 changes: 1 addition & 1 deletion src/ArticleListView.m
Expand Up @@ -1732,7 +1732,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
change:(NSDictionary<NSKeyValueChangeKey,id> *)change
context:(void *)context {
if (keyPath == MAPref_ShowStatusBar) {
if ([keyPath isEqualToString:MAPref_ShowStatusBar]) {
BOOL isStatusBarShown = [Preferences standardPreferences].showStatusBar;
if (isStatusBarShown && !self.statusBar) {
self.statusBar = [OverlayStatusBar new];
Expand Down
2 changes: 1 addition & 1 deletion src/BrowserPane.m
Expand Up @@ -791,7 +791,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
change:(NSDictionary<NSKeyValueChangeKey,id> *)change
context:(void *)context {
if (keyPath == MAPref_ShowStatusBar) {
if ([keyPath isEqualToString:MAPref_ShowStatusBar]) {
BOOL isStatusBarShown = [Preferences standardPreferences].showStatusBar;
if (isStatusBarShown && !self.statusBar) {
self.statusBar = [OverlayStatusBar new];
Expand Down
2 changes: 1 addition & 1 deletion src/UnifiedDisplayView.m
Expand Up @@ -1028,7 +1028,7 @@ - (void)observeValueForKeyPath:(NSString *)keyPath
ofObject:(id)object
change:(NSDictionary<NSKeyValueChangeKey,id> *)change
context:(void *)context {
if (keyPath == MAPref_ShowStatusBar) {
if ([keyPath isEqualToString:MAPref_ShowStatusBar]) {
BOOL isStatusBarShown = [Preferences standardPreferences].showStatusBar;
if (isStatusBarShown && !self.statusBar) {
self.statusBar = [OverlayStatusBar new];
Expand Down

0 comments on commit 572693c

Please sign in to comment.