summaryrefslogtreecommitdiff
path: root/UChecksumDruid.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-14 21:07:33 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-11-14 21:07:33 +0100
commit672d925f873c636562f80c6a46e1086e3fe6549a (patch)
tree295d405c8827391878f0eefcea99cedd5d5713f6 /UChecksumDruid.pas
parent75fe735e013a99e1d2a584eaeb0fa0a2ca5c1de7 (diff)
downloadtuxcmd-672d925f873c636562f80c6a46e1086e3fe6549a.tar.xz
Checksum dialogs little UI fixesv0.6.58
Diffstat (limited to 'UChecksumDruid.pas')
-rw-r--r--UChecksumDruid.pas8
1 files changed, 6 insertions, 2 deletions
diff --git a/UChecksumDruid.pas b/UChecksumDruid.pas
index 284060e..34a2570 100644
--- a/UChecksumDruid.pas
+++ b/UChecksumDruid.pas
@@ -313,12 +313,16 @@ begin
s := UTF8ToStr(FileNameEntry.Text);
i := Engine.OpenFile(s, omWrite, Error);
if Error <> 0 then begin
- Application.MessageBox(Format(LANGCCHKSUMAnErrorOccuredWhileOpeningFileSS, [StrToUTF8(ExtractFileName(s)), GetErrorString(Error)]),
+ Application.MessageBox(PGtkWindow(FWidget), Format(LANGCCHKSUMAnErrorOccuredWhileOpeningFileSS, [StrToUTF8(ExtractFileName(s)), GetErrorString(Error)]),
[mbOK], mbError, mbNone, mbOK);
Exit;
end;
Engine.CloseFile(i);
+ Engine.Remove(s);
end;
+
+ DebugMsg(['TFChecksumDruid.SetCurrentPage: CurrentPage = ', CurrentPage, ', new = ', Num]);
+
// Changing page
CurrentPage := Num;
if CurrentPage < 1 then CurrentPage := 1;
@@ -410,7 +414,7 @@ end;
procedure TFChecksumDruid.CheckStop;
begin
if Stop and (not StopBreak) then
- if Application.MessageBox(LANGCCHKSUMAreYouSureYouWantToAbortTheProcessing, [mbYes, mbNo], mbQuestion, mbNone, mbNo) = mbYes
+ if Application.MessageBox(PGtkWindow(FWidget), LANGCCHKSUMAreYouSureYouWantToAbortTheProcessing, [mbYes, mbNo], mbQuestion, mbNone, mbNo) = mbYes
then StopBreak := True
else begin Stop := False; StopBreak := False; end;
end;