diff --git a/src/coinswidget.cpp b/src/coinswidget.cpp index 74a534b..60228c1 100644 --- a/src/coinswidget.cpp +++ b/src/coinswidget.cpp @@ -186,10 +186,6 @@ void CoinsWidget::onSweepOutput() { dialog->deleteLater(); } -void CoinsWidget::resetModel() { - ui->coins->setModel(nullptr); -} - void CoinsWidget::copy(copyField field) { CoinsInfo* c = this->currentEntry(); if (!c) return; diff --git a/src/coinswidget.h b/src/coinswidget.h index 9939d4c..91ffba9 100644 --- a/src/coinswidget.h +++ b/src/coinswidget.h @@ -26,9 +26,6 @@ public: void setModel(CoinsModel * model, Coins * coins); ~CoinsWidget() override; -public slots: - void resetModel(); - private slots: void showHeaderMenu(const QPoint& position); void setShowSpent(bool show); diff --git a/src/contactswidget.cpp b/src/contactswidget.cpp index 147e579..62b0908 100644 --- a/src/contactswidget.cpp +++ b/src/contactswidget.cpp @@ -97,11 +97,6 @@ void ContactsWidget::setSearchFilter(const QString &filter) { m_proxyModel->setSearchFilter(filter); } -void ContactsWidget::resetModel() -{ - ui->contacts->setModel(nullptr); -} - void ContactsWidget::showHeaderMenu(const QPoint& position) { m_showFullAddressesAction->setChecked(m_model->isShowFullAddresses()); diff --git a/src/contactswidget.h b/src/contactswidget.h index 280e982..5c2a819 100644 --- a/src/contactswidget.h +++ b/src/contactswidget.h @@ -34,7 +34,6 @@ public slots: void deleteContact(); void setShowFullAddresses(bool show); void setSearchFilter(const QString &filter); - void resetModel(); signals: void fillAddress(QString &address); diff --git a/src/receivewidget.cpp b/src/receivewidget.cpp index 73be25d..e5a74e6 100644 --- a/src/receivewidget.cpp +++ b/src/receivewidget.cpp @@ -127,10 +127,6 @@ void ReceiveWidget::onShowTransactions() { emit showTransactions(address); } -void ReceiveWidget::resetModel() { - ui->addresses->setModel(nullptr); -} - void ReceiveWidget::setShowFullAddresses(bool show) { if (!m_model) return; m_model->setShowFullAddresses(show); diff --git a/src/receivewidget.h b/src/receivewidget.h index 7adc798..8fa16e8 100644 --- a/src/receivewidget.h +++ b/src/receivewidget.h @@ -38,7 +38,6 @@ public slots: void setShowHiddenAddresses(bool show); void setSearchFilter(const QString &filter); void onShowTransactions(); - void resetModel(); signals: void showTransactions(const QString& address);