forked from qt-creator/qt-creator
Core: Avoid duplicating options page
Creating an IOptionPage registers it automatically. In case an
IOptionsProvider is used this duplicates the the option pages
and although duplicated still adds them to the respective
category again.
If one clicks on the respective tab this results in a crash.
Slipped in with cc88302309.
Change-Id: Ie881f532c3f0e397147d99ce368066cdce01a612
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
using namespace Designer::Internal;
|
||||
|
||||
SettingsPage::SettingsPage(QDesignerOptionsPageInterface *designerPage) :
|
||||
Core::IOptionsPage(nullptr, false),
|
||||
m_designerPage(designerPage)
|
||||
{
|
||||
setId(Core::Id::fromString(m_designerPage->name()));
|
||||
|
||||
Reference in New Issue
Block a user