src/gui/widgets/qmainwindowlayout_mac.mm
changeset 3 41300fa6a67c
parent 0 1918ee327afb
child 4 3b1da2848fc7
child 7 f7bc934e204c
child 18 2f34d5167611
equal deleted inserted replaced
2:56cd8111b7f7 3:41300fa6a67c
   461                                        toolbarItemsCopy.indexOf(item));
   461                                        toolbarItemsCopy.indexOf(item));
   462 #else
   462 #else
   463             NSToolbarItem *item = static_cast<NSToolbarItem *>(it.key());
   463             NSToolbarItem *item = static_cast<NSToolbarItem *>(it.key());
   464             [[qt_mac_window_for(layoutState.mainWindow->window()) toolbar]
   464             [[qt_mac_window_for(layoutState.mainWindow->window()) toolbar]
   465                 removeItemAtIndex:toolbarItemsCopy.indexOf(item)];
   465                 removeItemAtIndex:toolbarItemsCopy.indexOf(item)];
   466             // In Carbon this hash and list gets emptied via events. In Cocoa, we have to do it ourselves here.
       
   467             it = unifiedToolbarHash.erase(it);
       
   468             qtoolbarsInUnifiedToolbarList.removeAll(toolbar);
       
   469 #endif
   466 #endif
   470             break;
   467             break;
   471         }
   468         }
   472         ++it;
   469         ++it;
   473     }
   470     }