[vlc-commits] macosx: do not load windows if not necessary
David Fuhrmann
git at videolan.org
Sat Jan 2 22:36:47 CET 2016
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Jan 2 22:25:58 2016 +0100| [a984dec8653a88a7bfcf45331ad584364dd234ec] | committer: David Fuhrmann
macosx: do not load windows if not necessary
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a984dec8653a88a7bfcf45331ad584364dd234ec
---
modules/gui/macosx/AudioEffects.m | 2 +-
modules/gui/macosx/ResumeDialogController.m | 2 +-
modules/gui/macosx/TrackSynchronization.m | 2 +-
modules/gui/macosx/VideoEffects.m | 2 +-
modules/gui/macosx/bookmarks.m | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/gui/macosx/AudioEffects.m b/modules/gui/macosx/AudioEffects.m
index c0dde23..7faf6f2 100644
--- a/modules/gui/macosx/AudioEffects.m
+++ b/modules/gui/macosx/AudioEffects.m
@@ -194,7 +194,7 @@
#pragma mark generic code
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
- if (self.window && [self.window isVisible] && [self.window level] != i_level)
+ if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
diff --git a/modules/gui/macosx/ResumeDialogController.m b/modules/gui/macosx/ResumeDialogController.m
index a89a89b..e427213 100644
--- a/modules/gui/macosx/ResumeDialogController.m
+++ b/modules/gui/macosx/ResumeDialogController.m
@@ -122,7 +122,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
- if (self.window && [self.window isVisible] && [self.window level] != i_level)
+ if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
diff --git a/modules/gui/macosx/TrackSynchronization.m b/modules/gui/macosx/TrackSynchronization.m
index 3780195..ec4057b 100644
--- a/modules/gui/macosx/TrackSynchronization.m
+++ b/modules/gui/macosx/TrackSynchronization.m
@@ -88,7 +88,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
- if (self.window && [self.window isVisible] && [self.window level] != i_level)
+ if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
diff --git a/modules/gui/macosx/VideoEffects.m b/modules/gui/macosx/VideoEffects.m
index 4d9272a..73378b2 100644
--- a/modules/gui/macosx/VideoEffects.m
+++ b/modules/gui/macosx/VideoEffects.m
@@ -210,7 +210,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
- if (self.window && [self.window isVisible] && [self.window level] != i_level)
+ if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
diff --git a/modules/gui/macosx/bookmarks.m b/modules/gui/macosx/bookmarks.m
index 6dc3c92..9caaf26 100644
--- a/modules/gui/macosx/bookmarks.m
+++ b/modules/gui/macosx/bookmarks.m
@@ -99,7 +99,7 @@
- (void)updateCocoaWindowLevel:(NSInteger)i_level
{
- if (self.window && [self.window isVisible] && [self.window level] != i_level)
+ if (self.isWindowLoaded && [self.window isVisible] && [self.window level] != i_level)
[self.window setLevel: i_level];
}
More information about the vlc-commits
mailing list