]> git.saurik.com Git - wxWidgets.git/blobdiff - src/dfb/window.cpp
Added missing URL attribute testing
[wxWidgets.git] / src / dfb / window.cpp
index 40e8fddbee47a6ccea4edbdede180d841f41ce11..2470e530ba6d6bd99c3fa50c28255766b7a16d31 100644 (file)
@@ -1076,7 +1076,7 @@ void wxWindowDFB::HandleKeyEvent(const wxDFBWindowEvent& event_)
 
 void wxWindowDFB::OnInternalIdle()
 {
-    if (wxUpdateUIEvent::CanUpdate(this))
+    if (wxUpdateUIEvent::CanUpdate(this) && IsShown())
         UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
 }