mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-11 20:32:35 -03:00
peers-tab: bug fix right panel toggle
This commit is contained in:
parent
80e16cadd5
commit
8353e8cecc
2 changed files with 3 additions and 3 deletions
|
@ -988,7 +988,7 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
<widget class="QWidget" name="peersTabRightPanel" native="true">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
|
|
|
@ -1097,7 +1097,7 @@ void RPCConsole::updateDetailWidget()
|
|||
{
|
||||
const QList<QModelIndex> selected_peers = GUIUtil::getEntryData(ui->peerWidget, PeerTableModel::NetNodeId);
|
||||
if (!clientModel || !clientModel->getPeerTableModel() || selected_peers.size() != 1) {
|
||||
ui->detailWidget->hide();
|
||||
ui->peersTabRightPanel->hide();
|
||||
ui->peerHeading->setText(tr("Select a peer to view detailed information."));
|
||||
return;
|
||||
}
|
||||
|
@ -1151,7 +1151,7 @@ void RPCConsole::updateDetailWidget()
|
|||
ui->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height));
|
||||
}
|
||||
|
||||
ui->detailWidget->show();
|
||||
ui->peersTabRightPanel->show();
|
||||
}
|
||||
|
||||
void RPCConsole::resizeEvent(QResizeEvent *event)
|
||||
|
|
Loading…
Reference in a new issue