From 2e7b23898cfbfb6abebcc5f2d9ffae68e431045a Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 22 Oct 2021 23:26:28 +0200 Subject: [PATCH] History: update on websocket fiat rates received --- src/HistoryWidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/HistoryWidget.cpp b/src/HistoryWidget.cpp index eef0c86..c446517 100644 --- a/src/HistoryWidget.cpp +++ b/src/HistoryWidget.cpp @@ -11,6 +11,7 @@ #include "dialog/TxProofDialog.h" #include "utils/config.h" #include "utils/Icons.h" +#include "WebsocketNotifier.h" HistoryWidget::HistoryWidget(QSharedPointer ctx, QWidget *parent) : QWidget(parent) @@ -53,6 +54,10 @@ HistoryWidget::HistoryWidget(QSharedPointer ctx, QWidget *parent) ui->syncNotice->setVisible(config()->get(Config::showHistorySyncNotice).toBool()); ui->history->setHistoryModel(m_model); + connect(websocketNotifier(), &WebsocketNotifier::FiatRatesReceived, [this]{ + ui->history->update(); + }); + // Load view state QByteArray historyViewState = QByteArray::fromBase64(config()->get(Config::GUI_HistoryViewState).toByteArray()); if (!historyViewState.isEmpty()) {