]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
History: fix txid column behavior
authortobtoht <thotbot@protonmail.com>
Fri, 22 Oct 2021 15:11:50 +0000 (17:11 +0200)
committertobtoht <thotbot@protonmail.com>
Fri, 22 Oct 2021 15:11:50 +0000 (17:11 +0200)
src/model/HistoryView.cpp

index be1da45bfd773818780442350244ab327c7f602b..8b1ce165bd5aa7d775076548bfdfebe000106c44 100644 (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);
     }
 }