Skip to content

Commit

Permalink
Correct connections edit of first item in config file list.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbcat committed Jan 13, 2025
1 parent dd20c08 commit 3ba600f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gui/src/connections_dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ void ConnectionsDialog::OnEditDatasourceClick(wxCommandEvent& event) {

auto found = std::find(TheConnectionParams().begin(),
TheConnectionParams().end(), mSelectedConnection);
if (found != TheConnectionParams().begin() && (*found)) {
if (found != TheConnectionParams().end() && (*found)) {
ConnectionEditDialog dialog(m_parent);
dialog.SetSize(
wxSize(m_parent->GetSize().x, m_parent->GetSize().y * 8 / 10));
Expand Down

0 comments on commit 3ba600f

Please sign in to comment.