Browse Source

Revert "fix 53"

This reverts commit a95eb475c7.
onryo
onryo 1 year ago
parent
commit
1ec5e0911c
  1. 2
      src/addressbook.h
  2. 6
      src/balancestablemodel.h
  3. 12
      src/controller.cpp
  4. 8
      src/firsttimewizard.h
  5. 6
      src/memoedit.h
  6. 4
      src/recurring.h
  7. 2
      src/viewalladdresses.h

2
src/addressbook.h

@ -11,8 +11,6 @@ class MainWindow;
class AddressBookModel : public QAbstractTableModel {
Q_OBJECT
public:
AddressBookModel(QTableView* parent);
~AddressBookModel();

6
src/balancestablemodel.h

@ -8,10 +8,8 @@
#include "camount.h"
class BalancesTableModel : public QAbstractTableModel {
Q_OBJECT
class BalancesTableModel : public QAbstractTableModel
{
public:
BalancesTableModel(QObject* parent);
~BalancesTableModel();

12
src/controller.cpp

@ -1444,8 +1444,8 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
// Wallet is encrypted and locked. Ask for the password and unlock.
QString password = QInputDialog::getText(
main,
main->QObject::tr("Wallet Password"),
main->QObject::tr("Your wallet is encrypted.\nPlease enter your wallet password"),
main->tr("Wallet Password"),
main->tr("Your wallet is encrypted.\nPlease enter your wallet password"),
QLineEdit::Password
);
@ -1453,8 +1453,8 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
{
QMessageBox::critical(
main,
main->QObject::tr("Wallet Decryption Failed"),
main->QObject::tr("Please enter a valid password"),
main->tr("Wallet Decryption Failed"),
main->tr("Please enter a valid password"),
QMessageBox::Ok
);
error();
@ -1473,7 +1473,7 @@ void Controller::unlockIfEncrypted(std::function<void(void)> cb, std::function<v
{
QMessageBox::critical(
main,
main->QObject::tr("Wallet Decryption Failed"),
main->tr("Wallet Decryption Failed"),
QString::fromStdString(reply["error"].get<json::string_t>()),
QMessageBox::Ok
);
@ -1543,7 +1543,7 @@ void Controller::executeTransaction(Tx tx,
error("", errStr);
});
}, [=]() {
error("", main->QObject::tr("Failed to unlock wallet"));
error("", main->tr("Failed to unlock wallet"));
});
}

8
src/firsttimewizard.h

@ -51,8 +51,6 @@ private:
class NewOrRestorePage: public QWizardPage {
Q_OBJECT
public:
NewOrRestorePage(FirstTimeWizard* parent);
@ -67,9 +65,6 @@ private:
class NewSeedPage: public QWizardPage {
Q_OBJECT
public:
NewSeedPage(FirstTimeWizard* parent);
@ -85,9 +80,6 @@ private:
class RestoreSeedPage: public QWizardPage {
Q_OBJECT
public:
RestoreSeedPage(FirstTimeWizard* parent);

6
src/memoedit.h

@ -5,10 +5,8 @@
#include "precompiled.h"
class MemoEdit : public QPlainTextEdit {
Q_OBJECT
class MemoEdit : public QPlainTextEdit
{
public:
MemoEdit(QWidget* parent);

4
src/recurring.h

@ -121,8 +121,6 @@ private:
// Model for list of configured recurring payments
class RecurringListViewModel : public QAbstractTableModel {
Q_OBJECT
public:
RecurringListViewModel(QTableView* parent);
~RecurringListViewModel() = default;
@ -140,8 +138,6 @@ private:
// Model for history of payments
class RecurringPaymentsListViewModel : public QAbstractTableModel {
Q_OBJECT
public:
RecurringPaymentsListViewModel(QTableView* parent, RecurringPaymentInfo rpi);
~RecurringPaymentsListViewModel() = default;

2
src/viewalladdresses.h

@ -8,8 +8,6 @@
class ViewAllAddressesModel : public QAbstractTableModel {
Q_OBJECT
public:
ViewAllAddressesModel(QTableView* parent, QList<QString> taddrs, Controller* rpc);
~ViewAllAddressesModel() = default;

Loading…
Cancel
Save