Fix for GitHub issue #30

This commit is contained in:
Adam Ierymenko
2013-12-20 16:07:20 -08:00
parent 434a2f7071
commit fe6b7f477c
4 changed files with 53 additions and 37 deletions

View File

@ -106,8 +106,8 @@ const std::string &NetworkWidget::networkId()
void NetworkWidget::on_leaveNetworkButton_clicked()
{
if (QMessageBox::question(this,"Leave Network?",QString("Are you sure you want to leave network '") + networkIdStr.c_str() + "'?",QMessageBox::No,QMessageBox::Yes) == QMessageBox::Yes) {
zeroTierClient->send((QString("leave ") + networkIdStr.c_str()).toStdString());
this->setEnabled(false);
zeroTierClient->send((QString("leave ") + networkIdStr.c_str()).toStdString());
}
}