]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/grid.cpp
use more natively looking HildonNote instead of GtkMessageDialog under Maemo
[wxWidgets.git] / src / generic / grid.cpp
index 0c7b85e417e96b5309db9c3cdcd254ff5f7b61e3..4a09bd55fd413420496175ccfd39eded8c399a22 100644 (file)
@@ -1560,8 +1560,9 @@ void wxGridCellChoiceEditor::BeginEdit(int row, int col, wxGrid* grid)
     if (m_allowOthers)
     {
         Combo()->SetValue(m_startValue);
+        Combo()->SetInsertionPointEnd();
     }
-    else
+    else // the combobox is read-only
     {
         // find the right position, or default to the first if not found
         int pos = Combo()->FindString(m_startValue);
@@ -1570,7 +1571,6 @@ void wxGridCellChoiceEditor::BeginEdit(int row, int col, wxGrid* grid)
         Combo()->SetSelection(pos);
     }
 
-    Combo()->SetInsertionPointEnd();
     Combo()->SetFocus();
 
     if (evtHandler)