]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/macnotfy.cpp
focus setting must be possible even when not shown yet
[wxWidgets.git] / src / mac / carbon / macnotfy.cpp
index 36d7fb3e614bfa2c7c8d62471120b8ae31476e8d..65e43775982084403b50b5f54d485ffd425345e7 100644 (file)
@@ -112,11 +112,11 @@ void wxMacRemoveAllNotifiersForData( wxMacNotifierTableRef table , void* data )
     
     while ( e->top != index )
     {
-        if ( index == kMaxEvents )
-            index = 0 ;
         if ( e->data[index] == data )
             e->data[index] = NULL ;
         index++ ;
+        if ( index == kMaxEvents )
+            index = 0 ;
     }
 }