qt: Drop redundant WalletView::requestedSyncWarningInfo slot

This change makes a connection directly to the signal that was emitted
in the removed slot.

This commit does not change behavior.
This commit is contained in:
Hennadii Stepanov 2021-05-15 23:46:59 +03:00
parent e033ca1379
commit 793f19599b
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
2 changed files with 1 additions and 9 deletions

View file

@ -73,7 +73,7 @@ WalletView::WalletView(const PlatformStyle *_platformStyle, QWidget *parent):
// Clicking on a transaction on the overview pre-selects the transaction on the transaction history page
connect(overviewPage, &OverviewPage::transactionClicked, transactionView, qOverload<const QModelIndex&>(&TransactionView::focusTransaction));
connect(overviewPage, &OverviewPage::outOfSyncWarningClicked, this, &WalletView::requestedSyncWarningInfo);
connect(overviewPage, &OverviewPage::outOfSyncWarningClicked, this, &WalletView::outOfSyncWarningClicked);
connect(sendCoinsPage, &SendCoinsDialog::coinsSent, this, &WalletView::coinsSent);
// Highlight transaction after send
@ -347,8 +347,3 @@ void WalletView::showProgress(const QString &title, int nProgress)
}
}
}
void WalletView::requestedSyncWarningInfo()
{
Q_EMIT outOfSyncWarningClicked();
}

View file

@ -111,9 +111,6 @@ public Q_SLOTS:
/** Show progress dialog e.g. for rescan */
void showProgress(const QString &title, int nProgress);
/** User has requested more information about the out of sync state */
void requestedSyncWarningInfo();
Q_SIGNALS:
void setPrivacy(bool privacy);
void transactionClicked();