diff --git a/src/Create3Widget.cpp b/src/Create3Widget.cpp index 8b46a770..8ed61b29 100644 --- a/src/Create3Widget.cpp +++ b/src/Create3Widget.cpp @@ -68,6 +68,20 @@ Create3Widget::Create3Widget(Device *device, QWidget *parent) } connect(ui->toggleSwitch, SIGNAL(stateChanged(int)), this, SLOT(toggleChanged())); + + if(ui->create3IP->text() == ""){ + ui->CreateConnectButton->setEnabled(false); + ui->Create3SensorListButton->setEnabled(false); + ui->Create3ExampleProgramButton->setEnabled(false); + ui->toggleSwitch->setEnabled(false); + } + else{ + ui->CreateConnectButton->setEnabled(true); + ui->Create3SensorListButton->setEnabled(true); + ui->Create3ExampleProgramButton->setEnabled(true); + ui->toggleSwitch->setEnabled(true); + + } } Create3Widget::~Create3Widget()