]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/filedlgg.cpp
Make mouse capture checking asserts stronger and more detailed.
[wxWidgets.git] / src / generic / filedlgg.cpp
index a2a370d862fed7f76af7e71bdf2b782209b116b3..9ec0842c64739c7182db690dfdc49a93db41825a 100644 (file)
@@ -4,7 +4,6 @@
 // Author:      Robert Roebling
 // Modified by:
 // Created:     12/12/98
-// RCS-ID:      $Id$
 // Copyright:   (c) Robert Roebling
 // Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
@@ -49,6 +48,7 @@
 #include "wx/filectrl.h"
 #include "wx/generic/filedlgg.h"
 #include "wx/debug.h"
+#include "wx/modalhook.h"
 
 #if wxUSE_TOOLTIPS
     #include "wx/tooltip.h"
@@ -308,6 +308,8 @@ wxBitmapButton* wxGenericFileDialog::AddBitmapButton( wxWindowID winId,
 
 int wxGenericFileDialog::ShowModal()
 {
+    WX_HOOK_MODAL_DIALOG();
+
     if (CreateExtraControl())
     {
         wxSizer *sizer = GetSizer();