Commit 96ca7bf1 authored by Ulf Hermann's avatar Ulf Hermann
Browse files

QmlProfiler: Initialize pointer to QmlProfilerConfigWidget



Change-Id: I4c7f1456f3cc35727d9f3b72d100e072960987e4
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@theqtcompany.com>
parent 5398f4f5
......@@ -36,7 +36,7 @@
namespace QmlProfiler {
namespace Internal {
QmlProfilerOptionsPage::QmlProfilerOptionsPage()
QmlProfilerOptionsPage::QmlProfilerOptionsPage() : m_widget(0)
{
setId(Constants::SETTINGS);
setDisplayName(tr("QML Profiler"));
......@@ -52,8 +52,9 @@ QmlProfilerOptionsPage::~QmlProfilerOptionsPage()
QWidget *QmlProfilerOptionsPage::widget()
{
// We cannot parent the widget to the options page as it expects a QWidget as parent
if (!m_widget)
m_widget = new QmlProfilerConfigWidget(QmlProfilerPlugin::globalSettings(), 0);
m_widget = new QmlProfilerConfigWidget(QmlProfilerPlugin::globalSettings());
return m_widget;
}
......
Markdown is supported
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