src/gui/widgets/qmainwindowlayout_mac.mm
changeset 19 fcece45ef507
parent 18 2f34d5167611
child 30 5dc02b23752f
equal deleted inserted replaced
18:2f34d5167611 19:fcece45ef507
   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              unifiedToolbarHash.remove(item);
       
   467              qtoolbarsInUnifiedToolbarList.removeAll(toolbar);
   466 #endif
   468 #endif
   467             break;
   469             break;
   468         }
   470         }
   469         ++it;
   471         ++it;
   470     }
   472     }