mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06: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,8 +298,7 @@ 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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MappingWindow::AddWidget(const QString& name, QWidget* widget)
|
void MappingWindow::AddWidget(const QString& name, QWidget* widget)
|
||||||
@ -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();
|
||||||
|
Reference in New Issue
Block a user