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

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() ...@@ -465,10 +465,11 @@ void GdbServerProvidersSettingsPage::apply()
void GdbServerProvidersSettingsPage::finish() void GdbServerProvidersSettingsPage::finish()
{ {
if (m_configWidget)
disconnect(GdbServerProviderManager::instance(), &GdbServerProviderManager::providersChanged, disconnect(GdbServerProviderManager::instance(), &GdbServerProviderManager::providersChanged,
m_configWidget.data(), &GdbServerProvidersSettingsWidget::providerSelectionChanged); m_configWidget.data(), &GdbServerProvidersSettingsWidget::providerSelectionChanged);
delete m_configWidget; delete m_configWidget.data();
} }
} // namespace Internal } // namespace Internal
......
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