]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
Font work.
[wxWidgets.git] / src / generic / progdlgg.cpp
index 39bb6d1ef836590aada25bf296c93e7884babc6b..c99c98dac7673c49c586784b0f6d7d44ed940218 100644 (file)
@@ -406,6 +406,17 @@ void wxProgressDialog::Resume()
     m_btnAbort->Enable();
 }
 
+bool wxProgressDialog::Show( bool show )
+{
+    // reenable other windows before hiding this one because otherwise
+    // Windows wouldn't give the focus back to the window which had
+    // been previously focused because it would still be disabled
+    if(!show)
+        ReenableOtherWindows();
+
+    return wxDialog::Show(show);
+}
+
 // ----------------------------------------------------------------------------
 // event handlers
 // ----------------------------------------------------------------------------