]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/fontpickerg.cpp
fixed wxXmlResource::Load's detection of filenames to be done as early as possible
[wxWidgets.git] / src / generic / fontpickerg.cpp
index 971f1cbdbbb28a61f870e99a3493d57614423a88..56963130797c12d8ab1da306e74a726cb3d5bc9f 100644 (file)
@@ -59,7 +59,7 @@ bool wxGenericFontButton::Create( wxWindow *parent, wxWindowID id,
     }
 
     // and handle user clicks on it
-    Connect(wxEVT_COMMAND_BUTTON_CLICKED,
+    Connect(GetId(), wxEVT_COMMAND_BUTTON_CLICKED,
             wxCommandEventHandler(wxGenericFontButton::OnButtonClick),
             NULL, this);