Use signed int for the value of currentIndex of combobox.
This commit is contained in:
parent
cd52a6063e
commit
4239cc9098
|
@ -43,7 +43,7 @@ void Dialog::updateUi()
|
|||
for (unsigned int i = 0; i < (*sockets).size(); ++i) {
|
||||
ui->socketsComboBox->setItemText(i, (*sockets)[i]->socketName);
|
||||
}
|
||||
unsigned int index = ui->socketsComboBox->currentIndex();
|
||||
int index = ui->socketsComboBox->currentIndex();
|
||||
if (index != -1) {
|
||||
ui->toggleButton->setEnabled(true);
|
||||
ui->offTimerEnabled->setEnabled(true);
|
||||
|
|
Loading…
Reference in New Issue