History: fix txid column behavior

This commit is contained in:
tobtoht 2021-10-22 17:11:50 +02:00
parent ba127b4251
commit 27f3e96686
No known key found for this signature in database
GPG key ID: 1CADD27F41F45C3C

View file

@ -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);
}
}