summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndras Mantia <andras@kdab.com>2016-10-08 21:17:49 (GMT)
committerAndras Mantia <andras@kdab.com>2016-10-08 21:17:59 (GMT)
commit12c701747c8c35a354cf66e195ed92641b63647e (patch)
tree7694c95c71342fd354336bee42a79fbdcb409f3c
parent6e2d3f4e7e952a342ed91bf93d4487bd51a331ea (diff)
Fix build with g++ 4.8.5.
REVIEW: 129124
-rw-r--r--src/EditProfileDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/EditProfileDialog.cpp b/src/EditProfileDialog.cpp
index b7d4e6c..cfca11e 100644
--- a/src/EditProfileDialog.cpp
+++ b/src/EditProfileDialog.cpp
@@ -873,8 +873,8 @@ void EditProfileDialog::showKeyBindingEditor(bool isNewTranslator)
QPointer<QDialog> dialog = new QDialog(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(dialog);
buttonBox->setStandardButtons(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
- connect(buttonBox, &QDialogButtonBox::accepted, dialog, &QDialog::accept);
- connect(buttonBox, &QDialogButtonBox::rejected, dialog, &QDialog::reject);
+ connect(buttonBox, &QDialogButtonBox::accepted, dialog.data(), &QDialog::accept);
+ connect(buttonBox, &QDialogButtonBox::rejected, dialog.data(), &QDialog::reject);
if (isNewTranslator)
dialog->setWindowTitle(i18n("New Key Binding List"));