MappingWindow: m_controller is never nullptr
Since GCPadWiiUConfigDialog was made its own class, m_controller will never be nullptr.
This commit is contained in:
parent
b3b58b586c
commit
9551fe1c73
|
@ -298,7 +298,6 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
|
||||||
m_profiles_combo->addItem(QString::fromStdString(basename), QString::fromStdString(filename));
|
m_profiles_combo->addItem(QString::fromStdString(basename), QString::fromStdString(filename));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_controller != nullptr)
|
|
||||||
RefreshDevices();
|
RefreshDevices();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -329,9 +328,6 @@ std::shared_ptr<ciface::Core::Device> MappingWindow::GetDevice() const
|
||||||
|
|
||||||
void MappingWindow::OnDefaultFieldsPressed()
|
void MappingWindow::OnDefaultFieldsPressed()
|
||||||
{
|
{
|
||||||
if (m_controller == nullptr)
|
|
||||||
return;
|
|
||||||
|
|
||||||
m_controller->LoadDefaults(g_controller_interface);
|
m_controller->LoadDefaults(g_controller_interface);
|
||||||
m_controller->UpdateReferences(g_controller_interface);
|
m_controller->UpdateReferences(g_controller_interface);
|
||||||
emit Update();
|
emit Update();
|
||||||
|
|
Loading…
Reference in New Issue