X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fpasswordchangedlg.cpp;h=ce016f227cea01f3c41dfa38b3277ce0f7c9245b;hb=42ab7cc22c4702716db2b8bfa1d4545169f772e6;hp=7009adf63630e63eeb0a96d27b2102950dd37ec9;hpb=4988547cbb3c35016872a4ed8dbcc1376473ad80;p=quassel.git
diff --git a/src/qtui/passwordchangedlg.cpp b/src/qtui/passwordchangedlg.cpp
index 7009adf6..ce016f22 100644
--- a/src/qtui/passwordchangedlg.cpp
+++ b/src/qtui/passwordchangedlg.cpp
@@ -1,5 +1,5 @@
/***************************************************************************
- * Copyright (C) 2005-2015 by the Quassel Project *
+ * Copyright (C) 2005-2018 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
@@ -34,12 +34,12 @@ PasswordChangeDlg::PasswordChangeDlg(QWidget *parent) : QDialog(parent)
"on the Quassel Core running at %2.")
.arg(account.user(), account.hostName()));
- connect(ui.oldPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.newPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.confirmPasswordEdit, SIGNAL(textChanged(QString)), SLOT(inputChanged()));
- connect(ui.buttonBox, SIGNAL(accepted()), SLOT(changePassword()));
+ connect(ui.oldPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.newPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.confirmPasswordEdit, &QLineEdit::textChanged, this, &PasswordChangeDlg::inputChanged);
+ connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &PasswordChangeDlg::changePassword);
- connect(Client::instance(), SIGNAL(passwordChanged(bool)), SLOT(passwordChanged(bool)));
+ connect(Client::instance(), &Client::passwordChanged, this, &PasswordChangeDlg::passwordChanged);
ui.buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false);
}
@@ -64,7 +64,7 @@ void PasswordChangeDlg::passwordChanged(bool success)
{
if (!success) {
QMessageBox box(QMessageBox::Warning, tr("Password Not Changed"),
- tr("Password change failed"),
+ tr("Password change failed"),
QMessageBox::Ok, this);
box.setInformativeText(tr("The core reported an error when trying to change your password. Make sure you entered your old password correctly!"));
box.exec();