diff --git a/pages/History.qml b/pages/History.qml index 38940878..f427e018 100644 --- a/pages/History.qml +++ b/pages/History.qml @@ -1696,16 +1696,6 @@ Rectangle { + translationManager.emptyString; } - function lookupPaymentID(paymentId) { - if (!addressBookModel) - return "" - var idx = addressBookModel.lookupPaymentID(paymentId) - if (idx < 0) - return "" - idx = addressBookModel.index(idx, 0) - return addressBookModel.data(idx, AddressBookModel.AddressBookDescriptionRole) - } - FileDialog { id: writeCSVFileDialog title: qsTr("Please choose a folder") + translationManager.emptyString diff --git a/src/libwalletqt/AddressBook.cpp b/src/libwalletqt/AddressBook.cpp index fbcbc4ab..6fb5e93f 100644 --- a/src/libwalletqt/AddressBook.cpp +++ b/src/libwalletqt/AddressBook.cpp @@ -121,13 +121,6 @@ quint64 AddressBook::count() const return m_rows.size(); } -int AddressBook::lookupPaymentID(const QString &payment_id) const -{ - QReadLocker locker(&m_lock); - - return m_addressBookImpl->lookupPaymentID(payment_id.toStdString()); -} - QString AddressBook::getDescription(const QString &address) const { QReadLocker locker(&m_lock); diff --git a/src/libwalletqt/AddressBook.h b/src/libwalletqt/AddressBook.h index 39551e66..d74f05d4 100644 --- a/src/libwalletqt/AddressBook.h +++ b/src/libwalletqt/AddressBook.h @@ -51,7 +51,6 @@ public: quint64 count() const; Q_INVOKABLE QString errorString() const; Q_INVOKABLE int errorCode() const; - Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const; Q_INVOKABLE QString getDescription(const QString &address) const; enum ErrorCode { diff --git a/src/model/AddressBookModel.cpp b/src/model/AddressBookModel.cpp index d9086c34..a155230a 100644 --- a/src/model/AddressBookModel.cpp +++ b/src/model/AddressBookModel.cpp @@ -87,11 +87,6 @@ bool AddressBookModel::deleteRow(int row) return m_addressBook->deleteRow(row); } -int AddressBookModel::lookupPaymentID(const QString &payment_id) const -{ - return m_addressBook->lookupPaymentID(payment_id); -} - QHash AddressBookModel::roleNames() const { QHash roleNames = QAbstractListModel::roleNames(); diff --git a/src/model/AddressBookModel.h b/src/model/AddressBookModel.h index a738220d..5347700e 100644 --- a/src/model/AddressBookModel.h +++ b/src/model/AddressBookModel.h @@ -52,7 +52,6 @@ public: int rowCount(const QModelIndex &parent = QModelIndex()) const override; QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; Q_INVOKABLE bool deleteRow(int row); - Q_INVOKABLE int lookupPaymentID(const QString &payment_id) const; virtual QHash roleNames() const override; public slots: