[vlc-commits] macosx: improve readability for main window check

David Fuhrmann git at videolan.org
Sat Feb 22 23:52:54 CET 2014


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Feb 22 23:50:39 2014 +0100| [0cd6538def5a6d56d4852eaca43dc586a929adc4] | committer: David Fuhrmann

macosx: improve readability for main window check

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0cd6538def5a6d56d4852eaca43dc586a929adc4
---

 modules/gui/macosx/VLCVoutWindowController.m |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VLCVoutWindowController.m b/modules/gui/macosx/VLCVoutWindowController.m
index f46c77f..5be5048 100644
--- a/modules/gui/macosx/VLCVoutWindowController.m
+++ b/modules/gui/macosx/VLCVoutWindowController.m
@@ -255,7 +255,7 @@
     // set active video to no BEFORE closing the window to avoid stopping playback
     // due to NSWindowWillCloseNotification
     [o_window setHasActiveVideo: NO];
-    if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"]) {
+    if ([o_window class] != [VLCMainWindow class]) {
         [o_window close];
         [o_window orderOut:self]; // for dark interface
     }



More information about the vlc-commits mailing list