Use a UUID for the NSToolbar in unified title and toolbar.
authorJake Petroules <jake.petroules@petroules.com>
Sat, 5 Jan 2013 01:19:11 +0000 (20:19 -0500)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 15 Jan 2013 21:26:46 +0000 (22:26 +0100)
commitb744d9317153772d431e83aa306cea0faa0dc520
treee05fadec65178038c3eb2fca79229a3c9e67926c
parentfbd769dea957d4ba548293d3b9db94350aafd77f
Use a UUID for the NSToolbar in unified title and toolbar.

When two NSToolbars in an application share the same identifier, Cocoa
tries to synchronize their state (item position, view mode, etc.), and
this behvavior interferes with and crashes Qt applications in certain
cases when toggling the unified toolbar on and off. Therefore it is
necessary to use a unique identifier for each native toolbar created.

Does not affect Qt 5. This functionality has been removed and an
equivalent will be provided by QtMacExtras which uses a completely
different approach, though I7d5c8d58e45a504480a1ce67065add15cb35ad8f
could be considered Qt 5's rough equivalent to this.

Task-number: QTBUG-19207
Change-Id: I9030d56941d12a2c1f7a328337bf986f1b51eeb8
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/gui/widgets/qmainwindowlayout_mac.mm
tests/auto/qmainwindow/tst_qmainwindow.cpp