@@ -168,7 +168,7 @@ TFormTrackerModify = class(TForm)
168
168
FControlerGridTorrentData: TControlerGridTorrentData;
169
169
function CheckForAnnounce (const TrackerURL: utf8string): boolean;
170
170
procedure AppendTrackersToMemoNewTrackers (TrackerList: TStringList);
171
- procedure ShowUserErrorMessage (const ErrorText: string; const FormText: string = ' ' );
171
+ procedure ShowUserErrorMessage (ErrorText: string; const FormText: string = ' ' );
172
172
function TrackerWithURLAndAnnounce (const TrackerURL: utf8string): boolean;
173
173
procedure UpdateTorrent ;
174
174
procedure ShowHourGlassCursor (HourGlass: boolean);
@@ -538,7 +538,7 @@ function TFormTrackerModify.CheckForAnnounce(const TrackerURL: utf8string): bool
538
538
(not WebTorrentTrackerURL(TrackerURL)) and (not FDragAndDropStartUp);
539
539
end ;
540
540
541
- procedure TFormTrackerModify.ShowUserErrorMessage (const ErrorText: string;
541
+ procedure TFormTrackerModify.ShowUserErrorMessage (ErrorText: string;
542
542
const FormText: string);
543
543
begin
544
544
if FConsoleMode then
@@ -550,10 +550,9 @@ procedure TFormTrackerModify.ShowUserErrorMessage(const ErrorText: string;
550
550
end
551
551
else
552
552
begin
553
- if FormText = ' ' then
554
- Application.MessageBox(PChar(@ErrorText[1 ]), ' ' , MB_ICONERROR)
555
- else
556
- Application.MessageBox(PChar(@ErrorText[1 ]), PChar(@FormText[1 ]), MB_ICONERROR);
553
+ if FormText <> ' ' then
554
+ ErrorText := FormText + sLineBreak + ErrorText;
555
+ Application.MessageBox(PChar(@ErrorText[1 ]), ' ' , MB_ICONERROR);
557
556
end ;
558
557
end ;
559
558
@@ -621,7 +620,6 @@ procedure TFormTrackerModify.UpdateTorrent;
621
620
Reply, BoxStyle, i, CountTrackers: integer;
622
621
PopUpMenuStr: string;
623
622
SomeFilesCannotBeWriten, SomeFilesAreReadOnly, AllFilesAreReadBackCorrectly: boolean;
624
-
625
623
begin
626
624
// Update all the torrent files.
627
625
@@ -639,8 +637,8 @@ procedure TFormTrackerModify.UpdateTorrent;
639
637
begin
640
638
// Warn user before updating the torrent
641
639
BoxStyle := MB_ICONWARNING + MB_OKCANCEL;
642
- Reply := Application.MessageBox(' Warning: There is no undo. ' ,
643
- ' Torrent files will be change! ' , BoxStyle);
640
+ Reply := Application.MessageBox(' Torrent files will be change! ' +
641
+ sLineBreak + ' Warning: There is no undo. ' , ' ' , BoxStyle);
644
642
if Reply <> idOk then
645
643
begin
646
644
ShowHourGlassCursor(True);
@@ -679,9 +677,9 @@ procedure TFormTrackerModify.UpdateTorrent;
679
677
if not FConsoleMode and (CountTrackers = 0 ) then
680
678
begin // Torrent without a tracker is posible. But is this what the user realy want? a DHT torrent.
681
679
BoxStyle := MB_ICONWARNING + MB_OKCANCEL;
682
- Reply := Application.MessageBox(
683
- ' Warning: Create torrent file without any URL of the tracker?' ,
684
- ' There are no Trackers selected! ' , BoxStyle);
680
+ Reply := Application.MessageBox(' There are no Trackers selected! ' +
681
+ sLineBreak + ' Warning: Create torrent file without any URL of the tracker?' ,
682
+ ' ' , BoxStyle);
685
683
if Reply <> idOk then
686
684
begin
687
685
ShowHourGlassCursor(False);
@@ -1317,9 +1315,9 @@ procedure TFormTrackerModify.MenuTrackersAllTorrentArePublicPrivateClick(
1317
1315
i: integer;
1318
1316
begin
1319
1317
// Warn user about torrent Hash.
1320
- if Application.MessageBox(
1318
+ if Application.MessageBox(' Are you sure! ' + sLineBreak +
1321
1319
' Warning: Changing the public/private torrent flag will change the info hash.' ,
1322
- ' Are you sure! ' , MB_ICONWARNING + MB_OKCANCEL) <> idOk then
1320
+ ' ' , MB_ICONWARNING + MB_OKCANCEL) <> idOk then
1323
1321
exit;
1324
1322
1325
1323
// Set all the trackers publick/private CheckBoxRemoveAllSourceTag ON or OFF
@@ -1422,7 +1420,6 @@ procedure TFormTrackerModify.
1422
1420
end ;
1423
1421
1424
1422
procedure TFormTrackerModify.MenuUpdateTorrentAddBeforeRemoveNewClick (Sender: TObject);
1425
-
1426
1423
begin
1427
1424
// User have selected to add new tracker.
1428
1425
FTrackerList.TrackerListOrderForUpdatedTorrent :=
0 commit comments