From 3b746ce84fc405478f0ff8268b499bcd8a34a394 Mon Sep 17 00:00:00 2001 From: lsv Date: Tue, 4 Aug 2026 11:58:59 +0500 Subject: [PATCH] Fix Query Counter --- frm/frmQuery.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frm/frmQuery.cpp b/frm/frmQuery.cpp index 81398dd..93c15cb 100644 --- a/frm/frmQuery.cpp +++ b/frm/frmQuery.cpp @@ -4754,9 +4754,8 @@ void frmQuery::SqlBookAddPage(wxString& title) box->Connect(wxID_ANY, wxEVT_SET_FOCUS, wxFocusEventHandler(frmQuery::OnFocus)); box->Connect(wxID_ANY, wxEVT_KILL_FOCUS, wxFocusEventHandler(frmQuery::OnFocus)); - - if (title.BeforeFirst(' ')=="Query") { - wxString np = title.AfterFirst(' '); + wxString np = title.AfterLast(' '); + if (np.Length()>0) { long nl = 0; if (np.ToLong(&nl)) { if (sqlQueryCounter < nl) sqlQueryCounter = nl;