mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
MappingWindow: m_controller is never nullptr
Since GCPadWiiUConfigDialog was made its own class, m_controller will never be nullptr.
This commit is contained in:
@ -298,7 +298,6 @@ void MappingWindow::SetMappingType(MappingWindow::Type type)
|
||||
m_profiles_combo->addItem(QString::fromStdString(basename), QString::fromStdString(filename));
|
||||
}
|
||||
|
||||
if (m_controller != nullptr)
|
||||
RefreshDevices();
|
||||
}
|
||||
|
||||
@ -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();
|
||||
|
Reference in New Issue
Block a user