Skip to content

Commit bd50ff9

Browse files
committed
qt: Drop redundant OverviewPage::handleOutOfSyncWarningClicks slot
This change makes a connection directly to the signal that was emitted in the removed slot. This commit does not change behavior.
1 parent 793f195 commit bd50ff9

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/qt/overviewpage.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ OverviewPage::OverviewPage(const PlatformStyle *platformStyle, QWidget *parent)
166166

167167
// start with displaying the "out of sync" warnings
168168
showOutOfSyncWarning(true);
169-
connect(ui->labelWalletStatus, &QPushButton::clicked, this, &OverviewPage::handleOutOfSyncWarningClicks);
170-
connect(ui->labelTransactionsStatus, &QPushButton::clicked, this, &OverviewPage::handleOutOfSyncWarningClicks);
169+
connect(ui->labelWalletStatus, &QPushButton::clicked, this, &OverviewPage::outOfSyncWarningClicked);
170+
connect(ui->labelTransactionsStatus, &QPushButton::clicked, this, &OverviewPage::outOfSyncWarningClicked);
171171
}
172172

173173
void OverviewPage::handleTransactionClicked(const QModelIndex &index)
@@ -176,11 +176,6 @@ void OverviewPage::handleTransactionClicked(const QModelIndex &index)
176176
Q_EMIT transactionClicked(filter->mapToSource(index));
177177
}
178178

179-
void OverviewPage::handleOutOfSyncWarningClicks()
180-
{
181-
Q_EMIT outOfSyncWarningClicked();
182-
}
183-
184179
void OverviewPage::setPrivacy(bool privacy)
185180
{
186181
m_privacy = privacy;

src/qt/overviewpage.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ private Q_SLOTS:
6565
void handleTransactionClicked(const QModelIndex &index);
6666
void updateAlerts(const QString &warnings);
6767
void updateWatchOnlyLabels(bool showWatchOnly);
68-
void handleOutOfSyncWarningClicks();
6968
void setMonospacedFont(bool use_embedded_font);
7069
};
7170

0 commit comments

Comments
 (0)