]> git.saurik.com Git - wxWidgets.git/commitdiff
Close wxLogWindow automatically if it's the last remaining TLW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Oct 2012 14:02:08 +0000 (14:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Oct 2012 14:02:08 +0000 (14:02 +0000)
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

docs/changes.txt
src/generic/logg.cpp

index b69a7c5bb81d31a2f6707b9cde6c49349dff27fb..812427cf1a0cc1ae267eae81e38d8264d9b7d87f 100644 (file)
@@ -578,6 +578,7 @@ All (GUI):
 - Make TAB behaviour in wxGrid more flexible (Fulvio Senore).
 - Add missing styles support to wxWindow XRC hanlder (Steffen Olszewski).
 - Allow specifying all wxFlexGridSizer parameters in XRC (Steffen Olszewski).
+- Close wxLogWindow automatically if it's the last remaining top level window.
 
 wxGTK:
 
index db877a0e000b00945be206932e6a78e221f34a96..a56044a05f5d725323ab2ffa307d0ea06479e347 100644 (file)
@@ -448,6 +448,9 @@ public:
     wxLogFrame(wxWindow *pParent, wxLogWindow *log, const wxString& szTitle);
     virtual ~wxLogFrame();
 
+    // Don't prevent the application from exiting if just this frame remains.
+    virtual bool ShouldPreventAppExit() const { return false; }
+
     // menu callbacks
     void OnClose(wxCommandEvent& event);
     void OnCloseWindow(wxCloseEvent& event);