From d5535558805178c3c5eca101f54d4333a5738b8e Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 10 Jan 2014 21:40:38 -0800 Subject: Add "you have not joined any networks" placeholder if networks list is empty. --- ZeroTierUI/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ZeroTierUI/mainwindow.cpp') diff --git a/ZeroTierUI/mainwindow.cpp b/ZeroTierUI/mainwindow.cpp index fc434782..90c69d2a 100644 --- a/ZeroTierUI/mainwindow.cpp +++ b/ZeroTierUI/mainwindow.cpp @@ -238,6 +238,8 @@ void MainWindow::customEvent(QEvent *event) } } + ui->noNetworksLabel->setVisible(ui->networkListWidget->count() == 0); + if (this->myAddress.size()) ui->addressButton->setText(this->myAddress); else ui->addressButton->setText(" "); -- cgit v1.2.3