MappingWindow: m_controller is never nullptr

Since GCPadWiiUConfigDialog was made its own class, m_controller will
never be nullptr.
This commit is contained in:
Michael M 2017-11-19 12:35:41 -08:00
parent b3b58b586c
commit 9551fe1c73
1 changed files with 1 additions and 5 deletions

View File

@ -298,8 +298,7 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
m_profiles_combo->addItem(QString::fromStdString(basename), QString::fromStdString(filename));
}
if (m_controller != nullptr)
RefreshDevices();
RefreshDevices();
}
void MappingWindow::AddWidget(const QString& name, QWidget* widget)
@ -329,9 +328,6 @@ std::shared_ptr<ciface::Core::Device> MappingWindow::GetDevice() const
void MappingWindow::OnDefaultFieldsPressed()
{
if (m_controller == nullptr)
return;
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
emit Update();