diff --git a/include/wx/preferences.h b/include/wx/preferences.h index 472ea8f57b..935c7b1875 100644 --- a/include/wx/preferences.h +++ b/include/wx/preferences.h @@ -98,7 +98,7 @@ public: // Show the preferences dialog or bring it to the top if it's already // shown. Notice that this method may or may not block depending on the // platform, i.e. depending on whether the dialog is modal or not. - void Show(wxWindow* parent); + virtual void Show(wxWindow* parent); // Hide the currently shown dialog, if any. This doesn't do anything on the // platforms using modal preferences dialogs but should be called to diff --git a/interface/wx/preferences.h b/interface/wx/preferences.h index 3688fa3e06..656ce907c1 100644 --- a/interface/wx/preferences.h +++ b/interface/wx/preferences.h @@ -77,7 +77,7 @@ public: @param parent The window that invokes the preferences. Call Dismiss() before it's destroyed. */ - void Show(wxWindow* parent); + virtual void Show(wxWindow* parent); /** Hide the currently shown dialog, if any.