Close wxLogWindow automatically if it's the last remaining TLW.
Don't keep the application opened just because a log window is shown. Closes #14775. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -578,6 +578,7 @@ All (GUI):
|
|||||||
- Make TAB behaviour in wxGrid more flexible (Fulvio Senore).
|
- Make TAB behaviour in wxGrid more flexible (Fulvio Senore).
|
||||||
- Add missing styles support to wxWindow XRC hanlder (Steffen Olszewski).
|
- Add missing styles support to wxWindow XRC hanlder (Steffen Olszewski).
|
||||||
- Allow specifying all wxFlexGridSizer parameters in XRC (Steffen Olszewski).
|
- Allow specifying all wxFlexGridSizer parameters in XRC (Steffen Olszewski).
|
||||||
|
- Close wxLogWindow automatically if it's the last remaining top level window.
|
||||||
|
|
||||||
wxGTK:
|
wxGTK:
|
||||||
|
|
||||||
|
@@ -448,6 +448,9 @@ public:
|
|||||||
wxLogFrame(wxWindow *pParent, wxLogWindow *log, const wxString& szTitle);
|
wxLogFrame(wxWindow *pParent, wxLogWindow *log, const wxString& szTitle);
|
||||||
virtual ~wxLogFrame();
|
virtual ~wxLogFrame();
|
||||||
|
|
||||||
|
// Don't prevent the application from exiting if just this frame remains.
|
||||||
|
virtual bool ShouldPreventAppExit() const { return false; }
|
||||||
|
|
||||||
// menu callbacks
|
// menu callbacks
|
||||||
void OnClose(wxCommandEvent& event);
|
void OnClose(wxCommandEvent& event);
|
||||||
void OnCloseWindow(wxCloseEvent& event);
|
void OnCloseWindow(wxCloseEvent& event);
|
||||||
|
Reference in New Issue
Block a user