Browse Source

History: fix txid column behavior

1.0.0
tobtoht 1 month ago
parent
commit
27f3e96686
Signed by: tobtoht GPG Key ID: 1CADD27F41F45C3C
  1. 7
      src/model/HistoryView.cpp

7
src/model/HistoryView.cpp

@ -82,11 +82,16 @@ TransactionInfo* HistoryView::currentEntry()
}
void HistoryView::setSearchMode(bool mode) {
if (!m_inSearchMode) {
m_showTxidColumn = !header()->isSectionHidden(TransactionHistoryModel::TxID);
}
m_inSearchMode = mode;
if (mode) {
header()->showSection(TransactionHistoryModel::TxID);
} else {
}
else if (!m_showTxidColumn) {
header()->hideSection(TransactionHistoryModel::TxID);
}
}

Loading…
Cancel
Save