Remove text from plink message dialog which says one should press "y" or "n", where we have buttons already.

This commit is contained in:
Ansgar Becker
2014-03-31 04:05:17 +00:00
parent 817348af73
commit c549e62129

View File

@@ -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: