void RPCConsole::setNumConnections(int count)
{
- ui->numberOfConnections->setText(QString::number(count));
+ if (!clientModel)
+ return;
+
+ QString connections = QString::number(count) + " (";
+ connections += tr("Inbound:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_IN)) + " / ";
+ connections += tr("Outbound:") + " " + QString::number(clientModel->getNumConnections(CONNECTIONS_OUT)) + ")";
+
+ ui->numberOfConnections->setText(connections);
}
void RPCConsole::setNumBlocks(int count, int countOfPeers)
void RPCConsole::keyPressEvent(QKeyEvent *event)
{
+#ifdef ANDROID
+ if(windowType() != Qt::Widget && event->key() == event->key() == Qt::Key_Back)
+ {
+ close();
+ }
+#else
if(windowType() != Qt::Widget && event->key() == Qt::Key_Escape)
{
close();
}
-}
\ No newline at end of file
+#endif
+}