]> git.saurik.com Git - wxWidgets.git/commitdiff
don't reenable the disabled windows in OnShow(), it is unnecessary and the code there...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Apr 2002 12:54:09 +0000 (12:54 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 3 Apr 2002 12:54:09 +0000 (12:54 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/progdlgg.h
src/generic/progdlgg.cpp

index 872bba1fe03ff9dd04080276cecc2fcad0f2716c..57bcf51d4a2e0af31dfe1a5d0ef1ec102c572de1 100644 (file)
@@ -70,9 +70,6 @@ protected:
    // callback to disable "hard" window closing
    void OnClose(wxCloseEvent& event);
 
-   // callback to detect when the dialog is closed
-   void OnShow(wxShowEvent& event);
-
    // must be called to reenable the other windows temporarily disabled while
    // the dialog was shown
    void ReenableOtherWindows();
index ee2f457eff13fd883a7358f6c024168096b73f7e..15fb92990fd56ffbf8d194ab94e129cdfcee2658 100644 (file)
@@ -67,8 +67,6 @@ static void SetTimeLabel(unsigned long val, wxStaticText *label);
 BEGIN_EVENT_TABLE(wxProgressDialog, wxDialog)
     EVT_BUTTON(wxID_CANCEL, wxProgressDialog::OnCancel)
 
-    EVT_SHOW(wxProgressDialog::OnShow)
-
     EVT_CLOSE(wxProgressDialog::OnClose)
 END_EVENT_TABLE()
 
@@ -438,16 +436,6 @@ void wxProgressDialog::OnClose(wxCloseEvent& event)
     }
 }
 
-void wxProgressDialog::OnShow(wxShowEvent& event)
-{
-    // if the dialog is being hidden, it was closed, so reenable other windows
-    // now
-    if ( event.GetShow() )
-    {
-        ReenableOtherWindows();
-    }
-}
-
 // ----------------------------------------------------------------------------
 // destruction
 // ----------------------------------------------------------------------------