summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/NewPatchDialog.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2019-07-24 18:06:29 -0700
committerGitHub <noreply@github.com>2019-07-24 18:06:29 -0700
commitd82e0e0761aa8cf08048aed64011f0edf5d967a8 (patch)
tree0d19a24b6470e9e2fb57df22107835ca4421c7c6 /Source/Core/DolphinQt/Config/NewPatchDialog.cpp
parent29ba53f6c32313e551b4797a84a4edf477a4d54e (diff)
parent3529dfd69151bcf6c43145dcb5a677c3ae85653f (diff)
Merge pull request #8263 from CookiePLMonster/qt-button-fixes
Fixed behaviour of some buttons by connecting functors to correct signals
Diffstat (limited to 'Source/Core/DolphinQt/Config/NewPatchDialog.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/NewPatchDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/NewPatchDialog.cpp b/Source/Core/DolphinQt/Config/NewPatchDialog.cpp
index f4639e04c0..eb5e9fd354 100644
--- a/Source/Core/DolphinQt/Config/NewPatchDialog.cpp
+++ b/Source/Core/DolphinQt/Config/NewPatchDialog.cpp
@@ -71,7 +71,7 @@ void NewPatchDialog::ConnectWidgets()
connect(m_name_edit, static_cast<void (QLineEdit::*)(const QString&)>(&QLineEdit::textEdited),
[this](const QString& name) { m_patch.name = name.toStdString(); });
- connect(m_add_button, &QPushButton::pressed, this, &NewPatchDialog::AddEntry);
+ connect(m_add_button, &QPushButton::clicked, this, &NewPatchDialog::AddEntry);
connect(m_button_box, &QDialogButtonBox::accepted, this, &NewPatchDialog::accept);
connect(m_button_box, &QDialogButtonBox::rejected, this, &QDialog::reject);
@@ -164,7 +164,7 @@ QGroupBox* NewPatchDialog::CreateEntry(PatchEngine::PatchEntry& entry)
value->setPalette(palette);
});
- connect(remove, &QPushButton::pressed, [this, box, entry] {
+ connect(remove, &QPushButton::clicked, [this, box, entry] {
if (m_patch.entries.size() > 1)
{
box->setVisible(false);