[vlc-commits] macosx: Fix mapping of cancel dialog button in question dialog

David Fuhrmann git at videolan.org
Mon Oct 30 17:42:12 CET 2017


vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Mon Oct 30 17:41:11 2017 +0100| [075f1e7444833f2a6767f31fd08fdafb53896f3e] | committer: David Fuhrmann

macosx: Fix mapping of cancel dialog button in question dialog

close #18853

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

 modules/gui/macosx/VLCCoreDialogProvider.m | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/VLCCoreDialogProvider.m b/modules/gui/macosx/VLCCoreDialogProvider.m
index d2095d2048..41f310384f 100644
--- a/modules/gui/macosx/VLCCoreDialogProvider.m
+++ b/modules/gui/macosx/VLCCoreDialogProvider.m
@@ -261,17 +261,17 @@ static void updateProgressCallback(void *p_data,
 
     NSInteger returnValue = [alert runModal];
     switch (returnValue) {
+        case NSAlertDefaultReturn:
+            vlc_dialog_id_post_action([[dialogData objectAtIndex:0] pointerValue], 1);
+            break;
+
         case NSAlertAlternateReturn:
             vlc_dialog_id_post_action([[dialogData objectAtIndex:0] pointerValue], 2);
             break;
 
         case NSAlertOtherReturn:
-            vlc_dialog_id_post_action([[dialogData objectAtIndex:0] pointerValue], 3);
-            break;
-
         default:
-            vlc_dialog_id_post_action([[dialogData objectAtIndex:0] pointerValue], 1);
-            break;
+            vlc_dialog_id_dismiss([[dialogData objectAtIndex:0] pointerValue]);
     }
 
 }



More information about the vlc-commits mailing list