]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/checkbox.cpp
Wait() doesn't cancel the thread any longer
[wxWidgets.git] / src / gtk1 / checkbox.cpp
index c49c46ccff7f50aa87145e35bf9fc261cfdbdab1..fb6cc16c42240e068f141ca7763061784355a5fc 100644 (file)
@@ -220,7 +220,8 @@ void wxCheckBox::OnInternalIdle()
         }
     }
     
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate(this))
+        UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }
 
 wxSize wxCheckBox::DoGetBestSize() const