--- a/src/gui/widgets/qmainwindowlayout_mac.mm Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/widgets/qmainwindowlayout_mac.mm Tue Feb 02 00:43:10 2010 +0200
@@ -463,9 +463,6 @@
NSToolbarItem *item = static_cast<NSToolbarItem *>(it.key());
[[qt_mac_window_for(layoutState.mainWindow->window()) toolbar]
removeItemAtIndex:toolbarItemsCopy.indexOf(item)];
- // In Carbon this hash and list gets emptied via events. In Cocoa, we have to do it ourselves here.
- it = unifiedToolbarHash.erase(it);
- qtoolbarsInUnifiedToolbarList.removeAll(toolbar);
#endif
break;
}