changeset 1935:994e2360dbb2

Fix crash on macos with clicking a default button set with dw_windows_click_default
author mhessling@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 20 Jul 2018 03:10:44 +0000
parents 487fd711bf3f
children ebde5ef666a6
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed Oct 18 17:26:39 2017 +0000
+++ b/mac/dw.m	Fri Jul 20 03:10:44 2018 +0000
@@ -9033,7 +9033,7 @@
         {
             NSWindow *window = object;
 
-            [window setDefaultButtonCell:control];
+            [window setDefaultButtonCell:[control cell]];
         }
     }
     else