Commit a6deb27b authored by J-P Nurmi's avatar J-P Nurmi Committed by The Qt Project
Browse files

Fix TabView not to insert duplicate tabs


There are three ways to add tabs:
- declare 'static' Tab { } child elements
- call addTab() / insertTab()
- Component::createObject(tabView)

=> Do not rely on the calling order of Component.onCompleted()
and make sure that the same tabs are not accidentally re-inserted.

Task-number: QTBUG-30873
Change-Id: Ib30cfb676debbb302c5e9f7d757f66aab6fcc684
Reviewed-by: default avatarCaroline Chao <caroline.chao@digia.com>
parent bb7e55b7
No related merge requests found
Showing with 54 additions and 37 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment