]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/window.cpp
Compilation fix.
[wxWidgets.git] / src / os2 / window.cpp
index e99ecaa4d2c9d00d4dd4b81f7db6e1b4840c58db..7903c10e6c5bf4e28758a0f84e6258c8925cde0a 100644 (file)
@@ -1364,7 +1364,8 @@ void wxWindowOS2::OnIdle(
             (void)GetEventHandler()->ProcessEvent(rEvent);
         }
     }
-    UpdateWindowUI();
+    if (wxUpdateUIEvent::CanUpdate())
+        UpdateWindowUI();
 } // end of wxWindowOS2::OnIdle
 
 //