Fix condition to allow removing last connection config
This commit is contained in:
parent
13b5dbea18
commit
9ec834917f
|
@ -216,7 +216,7 @@ void ConnectionOptionPage::removeSelectedConfig()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const int index = ui()->selectionComboBox->currentIndex();
|
const int index = ui()->selectionComboBox->currentIndex();
|
||||||
if (index < 0 || static_cast<unsigned>(index) >= m_secondarySettings.size()) {
|
if (index < 0 || static_cast<unsigned>(index) > m_secondarySettings.size()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue