Permalink
Browse files

Qt/Mapping: Fix "Default" not working properly.

  • Loading branch information...
spycrab committed May 2, 2018
1 parent 71c8c65 commit 3d7b613be59bb8ecbd243dddffa8714ea23aae05
@@ -24,6 +24,7 @@ MappingWidget::MappingWidget(MappingWindow* window) : m_parent(window)
{
connect(window, &MappingWindow::ClearFields, this, &MappingWidget::OnClearFields);
connect(window, &MappingWindow::Update, this, &MappingWidget::Update);
connect(window, &MappingWindow::Save, this, &MappingWidget::SaveSettings);
}
MappingWindow* MappingWidget::GetParent() const
@@ -24,15 +24,15 @@ namespace ControllerEmu
class Control;
class ControlGroup;
class EmulatedController;
}
} // namespace ControllerEmu
namespace ciface
{
namespace Core
{
class Device;
}
}
} // namespace ciface
class MappingWidget : public QWidget
{
@@ -345,6 +345,7 @@ void MappingWindow::OnDefaultFieldsPressed()
m_controller->LoadDefaults(g_controller_interface);
m_controller->UpdateReferences(g_controller_interface);
emit Update();
emit Save();
}
bool MappingWindow::IsIterativeInput() const
@@ -56,6 +56,7 @@ class MappingWindow final : public QDialog
signals:
void Update();
void ClearFields();
void Save();
private:
void SetMappingType(Type type);

0 comments on commit 3d7b613

Please sign in to comment.