mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 711508 - Ensure that external toolbars are not duplicated for associated toolboxes. r=enndeakin.
This commit is contained in:
parent
d39ab52638
commit
90b789b113
@ -111,7 +111,9 @@
|
||||
if (!toolbox)
|
||||
throw("toolboxid attribute points to a toolbox which doesn't exist");
|
||||
|
||||
toolbox.externalToolbars.push(this);
|
||||
if (toolbox.externalToolbars.indexOf(this) == -1)
|
||||
toolbox.externalToolbars.push(this);
|
||||
|
||||
return this._toolbox = toolbox;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user