From c549e6212920f710b27c181d2d0aa745d622fddb Mon Sep 17 00:00:00 2001 From: Ansgar Becker Date: Mon, 31 Mar 2014 04:05:17 +0000 Subject: [PATCH] Remove text from plink message dialog which says one should press "y" or "n", where we have buttons already. --- source/dbconnection.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/dbconnection.pas b/source/dbconnection.pas index ee531e69..3f2f65a8 100644 --- a/source/dbconnection.pas +++ b/source/dbconnection.pas @@ -802,9 +802,9 @@ begin end; if ErrorText <> '' then begin - rx.Expression := '([^\.]+\?)\s*\(y\/n\s*(,[^\)]+)?\)\s*$'; + rx.Expression := '([^\.]+\?)(\s*\(y\/n\s*(,[^\)]+)?\)\s*)$'; if rx.Exec(ErrorText) then begin - case MessageDialog(Trim(rx.Match[1]), ErrorText, mtConfirmation, [mbYes, mbNo, mbCancel]) of + case MessageDialog(Trim(rx.Match[1]), Copy(ErrorText, 1, Length(ErrorText)-rx.MatchLen[2]), mtConfirmation, [mbYes, mbNo, mbCancel]) of mrYes: SendText('y'); mrNo: