]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
revert previous commit - but don't include unneeded email headers
[wxWidgets.git] / src / generic / listctrl.cpp
index 07126a38a7c739bc4cd71e58b4e63331f634f3a1..0c1f6b50bf8efd9c93426dceb0266b7f3dbcc627 100644 (file)
@@ -2243,6 +2243,9 @@ wxTextCtrl *wxListMainWindow::EditLabel(long item, wxClassInfo* textControlClass
     // been added and no screen update taken place.
     if ( m_dirty )
     {
+        // TODO: use wxTheApp->SafeYieldFor(NULL, wxEVT_CATEGORY_UI) instead
+        //       so that no pending events may change the item count (see below)
+        //       IMPORTANT: needs to be tested!
         wxSafeYield();
 
         // Pending events dispatched by wxSafeYield might have changed the item