From 3ba600f8252f310c3335b3f6212f28b9dc0464d8 Mon Sep 17 00:00:00 2001 From: Dave Date: Mon, 13 Jan 2025 13:59:04 -0500 Subject: [PATCH] Correct connections edit of first item in config file list. --- gui/src/connections_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gui/src/connections_dialog.cpp b/gui/src/connections_dialog.cpp index 65b078103f..c5edcbf7bd 100644 --- a/gui/src/connections_dialog.cpp +++ b/gui/src/connections_dialog.cpp @@ -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));