]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
fix MinGW/gcc compilation issue
[wxWidgets.git] / src / generic / grid.cpp
index c52334ed7cd0dd640eddf0fe6d156811245d10af..99090322c0f798d3bbcacffe32497a687da31e0b 100644 (file)
@@ -1488,7 +1488,13 @@ void wxGridCellChoiceEditor::BeginEdit(int row, int col, wxGrid* grid)
     Combo()->SetFocus();
 
     if (evtHandler)
+    {
+        // When dropping down the menu, a kill focus event
+        // happens after this point, so we can't reset the flag yet.
+#if !defined(__WXGTK20__)
         evtHandler->SetInSetFocus(false);
+#endif
+    }
 }
 
 bool wxGridCellChoiceEditor::EndEdit(int row, int col,