]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/listctrl.cpp
Ensure that a wxMenuItem's parent menu is updated if it is removed
[wxWidgets.git] / src / generic / listctrl.cpp
index bf85914d4cf7cf0f7ff639e4e2163a7b2f65b3bc..cfd5dc91e23e597d0fd88baed34c99dd60c43b7a 100644 (file)
@@ -4516,6 +4516,9 @@ void wxListMainWindow::InsertItem( wxListItem &item )
     m_lines.Insert( line, id );
 
     m_dirty = TRUE;
+
+    SendNotify(id, wxEVT_COMMAND_LIST_INSERT_ITEM);
+
     RefreshLines(id, GetItemCount() - 1);
 }