Skip to content

Commit

Permalink
Merge pull request #6732 from spycrab/qt_profile_fixes
Browse files Browse the repository at this point in the history
Qt: Mapping fixes
  • Loading branch information
delroth committed May 2, 2018
2 parents 71c8c65 + e3cebeb commit a6b35ed
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions Source/Core/DolphinQt2/Config/Mapping/MappingButton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ void MappingButton::OnButtonTimeout()
void MappingButton::Clear()
{
m_reference->SetExpression("");
m_reference->range = 100;
m_parent->SaveSettings();
Update();
}
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinQt2/Config/Mapping/MappingWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/DolphinQt2/Config/Mapping/MappingWidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinQt2/Config/Mapping/MappingWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinQt2/Config/Mapping/MappingWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ class MappingWindow final : public QDialog
signals:
void Update();
void ClearFields();
void Save();

private:
void SetMappingType(Type type);
Expand Down

0 comments on commit a6b35ed

Please sign in to comment.