diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2021-04-20 22:15:39 +0300 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2022-02-22 13:50:30 -0800 |
commit | 0554251d660caa1c3f5f44ae1d9fa3c23d2aac18 (patch) | |
tree | 1c7662f34c4b5852e6796d65e75628653cfca3a5 /src/qt/optionsmodel.h | |
parent | ffbc2fe459034024cb2fce9fd94bff457b7a7d49 (diff) | |
download | bitcoin-0554251d660caa1c3f5f44ae1d9fa3c23d2aac18.tar.xz |
qt: Skip displayUnitChanged signal if unit is not actually changed
Co-authored-by: João Barbosa <joao.paulo.barbosa@gmail.com>
Diffstat (limited to 'src/qt/optionsmodel.h')
-rw-r--r-- | src/qt/optionsmodel.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qt/optionsmodel.h b/src/qt/optionsmodel.h index be86d5ce74..510ebb5cfd 100644 --- a/src/qt/optionsmodel.h +++ b/src/qt/optionsmodel.h @@ -80,8 +80,8 @@ public: int rowCount(const QModelIndex & parent = QModelIndex()) const override; QVariant data(const QModelIndex & index, int role = Qt::DisplayRole) const override; bool setData(const QModelIndex & index, const QVariant & value, int role = Qt::EditRole) override; - /** Updates current unit in memory, settings and emits displayUnitChanged(newUnit) signal */ - void setDisplayUnit(const QVariant &value); + /** Updates current unit in memory, settings and emits displayUnitChanged(new_unit) signal */ + void setDisplayUnit(const QVariant& new_unit); /* Explicit getters */ bool getShowTrayIcon() const { return m_show_tray_icon; } |