Add a waiting for service message on startup to not confuse user.

This commit is contained in:
Adam Ierymenko 2014-01-13 11:16:38 -08:00
parent bacb8f56c3
commit 80ea7db9c0

View File

@ -90,6 +90,7 @@ MainWindow::MainWindow(QWidget *parent) :
QWidgetList widgets = this->findChildren<QWidget*>();
foreach(QWidget *widget, widgets)
widget->setAttribute(Qt::WA_MacShowFocusRect,false);
ui->noNetworksLabel->setText("Connecting to Service..."); // changed when result is received
mainWindow = this;
@ -238,7 +239,10 @@ void MainWindow::customEvent(QEvent *event)
}
}
ui->noNetworksLabel->setVisible(ui->networkListWidget->count() == 0);
if (!ui->networkListWidget->count()) {
ui->noNetworksLabel->setText("You Have Not Joined Any Networks");
ui->noNetworksLabel->setVisible(true);
} else ui->noNetworksLabel->setVisible(false);
if (this->myAddress.size())
ui->addressButton->setText(this->myAddress);