Skip to content

Commit

Permalink
Fix condition to allow removing last connection config
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Oct 8, 2017
1 parent 13b5dbe commit 9ec8349
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/settings/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ void ConnectionOptionPage::removeSelectedConfig()
return;
}
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;
}

Expand Down

0 comments on commit 9ec8349

Please sign in to comment.