From e8084995ccc9379b805c700e3aba6a0e633367e3 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 18 Jan 2013 09:05:25 +0000 Subject: - iceit patcher fix git-svn-id: http://svn.miranda-ng.org/main/trunk@3152 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- tools/iceit/Unit1.dfm | 2 +- tools/iceit/Unit1.pas | 33 +++++++++++++++------------------ tools/iceit/bin/iceit.exe | Bin 183808 -> 183808 bytes 3 files changed, 16 insertions(+), 19 deletions(-) (limited to 'tools/iceit') diff --git a/tools/iceit/Unit1.dfm b/tools/iceit/Unit1.dfm index 91147e662c..026a67fabd 100644 --- a/tools/iceit/Unit1.dfm +++ b/tools/iceit/Unit1.dfm @@ -3,7 +3,7 @@ object Form1: TForm1 Top = 134 BorderIcons = [biSystemMenu, biMinimize] BorderStyle = bsSingle - Caption = 'Miranda ICE Icon pack patcher | v.0.2.b' + Caption = 'Miranda ICE Icon pack patcher | v.0.3.b' ClientHeight = 320 ClientWidth = 336 Color = clBtnFace diff --git a/tools/iceit/Unit1.pas b/tools/iceit/Unit1.pas index e49f9f40d8..0381147e42 100644 --- a/tools/iceit/Unit1.pas +++ b/tools/iceit/Unit1.pas @@ -28,7 +28,6 @@ type procedure SelectNoneClick(Sender: TObject); procedure IceItClick(Sender: TObject); procedure MirandaPathClick(Sender: TObject); - procedure FormDestroy(Sender: TObject); private { Private declarations } function FillCombo(typ:string):integer; @@ -360,7 +359,7 @@ begin raise; end; if not EndUpdateResource(H, False) then - ErrorWithLastError('EndUpdateResource failed'); + ErrorWithLastError('EndUpdateResource failed'); Result := False; finally FreeMem(Ico); @@ -410,14 +409,19 @@ var xTemp: String; MaxCount: Integer; res:String; + size:Integer; begin if FileExists(Edit1.Text) then begin + AssignFile(Log, 'iceit.log'); + Rewrite(Log); + MaxCount := 0; for n := 0 to CheckListBox1.Items.Count - 1 do + begin if CheckListBox1.Checked[n] then inc(MaxCount); - for n := 0 to CheckListBox1.Items.Count - 1 do CheckListBox1.Items[n] := SetValue(CheckListBox1.Items[n], 1, 'NONE'); + end; MirandaPath := ExtractFileDir(Edit1.Text); ProgressBar1.Min := 0; ProgressBar1.Max := MaxCount; @@ -430,8 +434,8 @@ begin S := LowerCase(S); // keep the order as for FillCombo function (atm Core