[vlc-commits] macosx: don't initiate a modal dialog during a modal session (close #7575)

Felix Paul Kühne git at videolan.org
Wed Oct 10 12:59:42 CEST 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Oct 10 12:58:44 2012 +0200| [e608d2aa90a733e48cfc58f9be73f2aea8c75c94] | committer: Felix Paul Kühne

macosx: don't initiate a modal dialog during a modal session (close #7575)

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

 modules/gui/macosx/open.m |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/macosx/open.m b/modules/gui/macosx/open.m
index 5712985..9960b02 100644
--- a/modules/gui/macosx/open.m
+++ b/modules/gui/macosx/open.m
@@ -410,6 +410,10 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
 - (void)openTarget:(int)i_type
 {
+    /* check whether we already run a modal dialog */
+    if ([NSApp modalWindow] != nil)
+        return;
+
     int i_result;
 
     b_autoplay = config_GetInt(VLCIntf, "macosx-autoplay");



More information about the vlc-commits mailing list