Use signed int for the value of currentIndex of combobox.

This commit is contained in:
Andrius Štikonas 2016-04-06 17:50:09 +01:00
parent cd52a6063e
commit 4239cc9098
Signed by: andrius
GPG Key ID: C86115C8091792EC
1 changed files with 1 additions and 1 deletions

View File

@ -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);