forked from qt-creator/qt-creator
Core: Guard against pages that forgot to create their widgets
This should not happen, but when it happens, the resulting crash is quite cryptic. Make it a bit more obvious. Change-Id: Icbe40206cfdbae93ccb072d7027fcaf109f2f39f Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -132,6 +132,7 @@ QWidget *IOptionsPage::widget()
|
||||
if (!m_widget) {
|
||||
if (m_widgetCreator) {
|
||||
m_widget = m_widgetCreator();
|
||||
QTC_CHECK(m_widget);
|
||||
} else if (m_settingsProvider) {
|
||||
m_widget = new IOptionsPageWidget;
|
||||
AspectContainer *container = m_settingsProvider();
|
||||
|
||||
Reference in New Issue
Block a user