]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/wincmn.cpp
Close wxDataViewCtrl inline editor when destroying the control.
[wxWidgets.git] / src / common / wincmn.cpp
index 16f1ed9da868b019c781afc05aba8295f4bba0fe..969ace7bae41a319f58e6c75d393b7f86dd16339 100644 (file)
@@ -3328,7 +3328,9 @@ void wxWindowBase::DoMoveInTabOrder(wxWindow *win, WindowOrder move)
 
 bool wxWindowBase::HasFocus() const
 {
-    return FindFocus() == this;
+    wxWindowBase* const win = DoFindFocus();
+    return win &&
+            (this == win || this == win->GetMainWindowOfCompositeControl());
 }
 
 // ----------------------------------------------------------------------------