use YieldFor() in wxTopLevelWindowGTK::RequestUserAttention; comment on the use of YieldFor() in wxProgressDialog; add some TODOs near wxYieldIfNeeded()/wxSafeYield() calls in wxListCtrl, wxDataViewCtrl, wxTreeCtrl (closes #10320)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58916 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user