Skip to content

Commit

Permalink
[GUI] Realign tx filter widgets (#2485)
Browse files Browse the repository at this point in the history
Also hide watch-only filter when no watch-only addresses are used (corresponding column already has this kind of behaviour).
  • Loading branch information
UdjinM6 authored and codablock committed Nov 23, 2018
1 parent da4b5fb commit aa49540
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ TransactionView::TransactionView(const PlatformStyle *platformStyle, QWidget *pa
hlayout->setContentsMargins(0,0,0,0);
if (platformStyle->getUseExtraSpacing()) {
hlayout->setSpacing(0);
hlayout->addSpacing(6);
hlayout->addSpacing(STATUS_COLUMN_WIDTH - 1);
} else {
hlayout->setSpacing(1);
hlayout->addSpacing(5);
hlayout->addSpacing(STATUS_COLUMN_WIDTH - 2);
}
QString theme = GUIUtil::getThemeName();
watchOnlyWidget = new QComboBox(this);
Expand Down Expand Up @@ -664,6 +664,6 @@ bool TransactionView::eventFilter(QObject *obj, QEvent *event)
// show/hide column Watch-only
void TransactionView::updateWatchOnlyColumn(bool fHaveWatchOnly)
{
watchOnlyWidget->setVisible(true);
watchOnlyWidget->setVisible(fHaveWatchOnly);
transactionView->setColumnHidden(TransactionTableModel::Watchonly, !fHaveWatchOnly);
}

0 comments on commit aa49540

Please sign in to comment.