Commit 5b5192d3 authored by Nikita Baryshnikov's avatar Nikita Baryshnikov

BareMetal: fix warning

QObject::disconnect: Unexpected null parameter

Change-Id: I9b7fe695f7d9d6acb233d8e9ff1030636559d548
Reviewed-by: default avatarhjk <hjk@theqtcompany.com>
parent c5ac8fc2
......@@ -465,10 +465,11 @@ void GdbServerProvidersSettingsPage::apply()
void GdbServerProvidersSettingsPage::finish()
{
disconnect(GdbServerProviderManager::instance(), &GdbServerProviderManager::providersChanged,
m_configWidget.data(), &GdbServerProvidersSettingsWidget::providerSelectionChanged);
if (m_configWidget)
disconnect(GdbServerProviderManager::instance(), &GdbServerProviderManager::providersChanged,
m_configWidget.data(), &GdbServerProvidersSettingsWidget::providerSelectionChanged);
delete m_configWidget;
delete m_configWidget.data();
}
} // namespace Internal
......
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