mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 18:53:23 -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>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="widget_2" native="true">
|
<widget class="QWidget" name="peersTabRightPanel" native="true">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
|
|
@ -1097,7 +1097,7 @@ void RPCConsole::updateDetailWidget()
|
||||||
{
|
{
|
||||||
const QList<QModelIndex> selected_peers = GUIUtil::getEntryData(ui->peerWidget, PeerTableModel::NetNodeId);
|
const QList<QModelIndex> selected_peers = GUIUtil::getEntryData(ui->peerWidget, PeerTableModel::NetNodeId);
|
||||||
if (!clientModel || !clientModel->getPeerTableModel() || selected_peers.size() != 1) {
|
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."));
|
ui->peerHeading->setText(tr("Select a peer to view detailed information."));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1151,7 +1151,7 @@ void RPCConsole::updateDetailWidget()
|
||||||
ui->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height));
|
ui->peerHeight->setText(QString::number(stats->nodeStateStats.m_starting_height));
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->detailWidget->show();
|
ui->peersTabRightPanel->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
void RPCConsole::resizeEvent(QResizeEvent *event)
|
void RPCConsole::resizeEvent(QResizeEvent *event)
|
||||||
|
|
Loading…
Add table
Reference in a new issue